/* Full Screen Modal Styles */
.modal-fullscreen {
  z-index: 9999990;
}

.modal-fullscreen .modal-content {
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #193574 0%, #2a4a8a 100%);
  color: white;
}

.modal-fullscreen .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
}

.modal-fullscreen .modal-body {
  padding: 3rem 2rem;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.modal-fullscreen .modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
}

.modal-fullscreen .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  font-size: 1.5rem;
  opacity: 0.8;
}

.modal-fullscreen .btn-close:hover {
  opacity: 1;
}

.modal-fullscreen .modal-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.modal-fullscreen .modal-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.modal-fullscreen .theme-btn {
  background: white;
  color: #193574;
  border: 2px solid white;
  padding: 1rem 2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0.5rem;
  line-height: 0.5em;
}

.modal-fullscreen .theme-btn:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.modal-fullscreen .theme-btn.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.modal-fullscreen .theme-btn.btn-outline:hover {
  background: white;
  color: #193574;
}

/* Modal Search Styles */
.modal-search-container {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.modal-search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  font-size: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.modal-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.modal-search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.modal-search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
}

.modal-search-results {
  margin-top: 2rem;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-x: hidden;
}

.modal-search-results::-webkit-scrollbar {
  width: 8px;
}

.modal-search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.modal-search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.modal-search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.modal-search-category {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.modal-search-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  color: white;
  text-decoration: none;
}

.modal-search-item:last-child {
  border-bottom: none;
}

.modal-search-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transform: translateX(5px);
}

.modal-search-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.modal-search-item-category {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.modal-search-loading {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.modal-search-no-results {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.modal-search-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .modal-fullscreen .modal-header,
  .modal-fullscreen .modal-body,
  .modal-fullscreen .modal-footer {
    padding: 1.5rem;
  }

  .modal-fullscreen .modal-title {
    font-size: 2rem;
  }

  .modal-fullscreen .modal-description {
    font-size: 1rem;
  }

  .modal-search-input {
    font-size: 1rem;
    padding: 0.875rem 2.5rem 0.875rem 1.25rem;
  }

  .modal-search-results {
    max-height: 300px;
  }
}
