/* Custom Premium Styles for Naveen Government College Portal */

/* Font Family Reset */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: col;
}

/* Hide Details Marker */
summary::-webkit-details-marker {
  display: none;
}
summary {
  list-style: none;
}

/* Dynamic Live Notice Ticker */
.notice-topbar-window {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.notice-topbar-track {
  display: flex;
  gap: 48px;
  animation: notice-ticker 28s linear infinite;
  width: max-content;
}

.notice-topbar-track:hover {
  animation-play-state: paused;
}

@keyframes notice-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 198, 208, 0.4);
}

.glass-card-dark {
  background: rgba(0, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Dropdown Menu overlay */
@media (max-width: 1023px) {
  #navLinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #c4c6d0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 49;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  
  #navLinks.open {
    display: flex;
  }
  
  #navLinks > a, #navLinks > details {
    width: 100%;
  }

  .nav-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: #f6f3f2;
    margin-top: 0.25rem;
    border-radius: 0.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Details Hover States for Desktop */
@media (min-width: 1024px) {
  .nav-group:hover .nav-menu {
    display: block;
  }
  .nav-menu {
    display: none;
  }
}

/* Form Styles for Dialog */
.dialog-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.dialog-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000e27;
}

.dialog-field input, .dialog-field textarea, .dialog-field select {
  padding: 0.625rem 0.875rem;
  border: 1px solid #c4c6d0;
  border-radius: 0.5rem;
  background-color: #ffffff;
  font-size: 0.9375rem;
  color: #1c1b1b;
  outline: none;
  transition: all 0.2s;
}

.dialog-field input:focus, .dialog-field textarea:focus, .dialog-field select:focus {
  border-color: #775a19;
  box-shadow: 0 0 0 2px rgba(119, 90, 25, 0.2);
}

.dialog-field input[type="file"] {
  border: 1px dashed #c4c6d0;
  padding: 0.5rem;
  cursor: pointer;
  background-color: #f9f9fb;
}

.dialog-field input[type="file"]::file-selector-button {
  background-color: #000e27;
  color: white;
  border: none;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.75rem;
  transition: opacity 0.2s;
}

.dialog-field input[type="file"]::file-selector-button:hover {
  opacity: 0.9;
}