@import '../responsive.css';
/* Base Styles */
:root {
  --primary: #E05E1A;    /* Orange color */
  --secondary: #1A2942;  /* Dark blue color */
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  color: var(--gray-800);
  background-color: var(--gray-100);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 50;
  transition: box-shadow 0.3s ease;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.08); /* Thin outline under navbar */
}

.navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar nav {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  max-width: 1500px;
  margin: 0 auto;
  flex-wrap: nowrap !important;
  gap: 1rem;
}

/* Prevent navbar children from expanding to full width on small screens */
.navbar nav > * { flex: 0 0 auto !important; }

@media (min-width: 640px) {
  .navbar nav {
    padding: 0.875rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .navbar nav {
    padding: 1.25rem 2rem;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar nav {
    padding: 1.25rem 3rem;
    gap: 2rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .logo {
    font-size: 1.2rem;
    gap: 0;
  }
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.875rem;
    gap: 0;
  }
  
  .logo span {
    margin-left: -0.4rem;
  }
}

.car-icon {
  color: var(--secondary);
  font-size: 1.5rem;
}

.logo-icon {
  height: 1.5rem;
  width: auto;
  object-fit: contain;
}

.logo-full {
  height: 1.2rem;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 480px) {
  .car-icon {
    font-size: 2rem;
  }
  
  .logo-icon {
    height: 2rem;
  }
  
  .logo-full {
    height: 1.4rem;
  }
}

@media (min-width: 768px) {
  .car-icon {
    font-size: 3rem;
  }
  
  .logo-icon {
    height: 3rem;
  }
  
  .logo-full {
    height: 2.2rem;
  }
}

.logo span {
  color: var(--primary);
  margin-left: -0.3rem;
}

.desktop-menu {
  display: flex;
  gap: 2rem;
  margin-left: -210px;
}

.desktop-menu a {
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s;
}

.desktop-menu a:hover {
  color: var(--primary);
}

.desktop-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: 50px;
  background-color: var(--primary);
  transition: background-color 0.2s;
}

.user-menu-button span{
    font-size: 1rem;
    color: white;
}

.user-menu-button i{
    color: white;
}

.user-menu-button:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background-color: var(--white);
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  display: none;
  z-index: 100;
}

.user-dropdown.active {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: var(--gray-100);
}

.dropdown-item i {
  color: var(--gray-600);
  width: 1rem;
  text-align: center;
}

.user-dropdown hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0.5rem 0;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.btn-outline {
  background-color: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #4c31a0;
}

.btn-text {
  color: var(--secondary);
  background: transparent;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-text:hover {
  text-decoration: underline;
}

.full-width {
  width: 100%;
}

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Desktop/Mobile Only Classes */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 0.5rem;
  }

  .user-menu-button .user-name {
    display: block !important;
  }
}

/* Animation */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.animate-item.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Profile Page */
.profile-page {
  padding-top: 5rem;
  min-height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .profile-page {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .profile-page {
    padding-top: 10rem;
    padding-bottom: 4rem;
  }
}

/* Profile Header */
.profile-header {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .profile-header {
    flex-direction: row;
    text-align: left;
    padding: 2rem;
    margin-bottom: 2rem;
    gap: 2rem;
  }
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

@media (min-width: 640px) {
  .avatar-image {
    width: 120px;
    height: 120px;
    border: 4px solid var(--primary);
  }
}

.edit-avatar-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.edit-avatar-btn:hover {
  background-color: rgba(224, 94, 26, 0.9);
}

.profile-info {
  flex: 1;
  width: 100%;
}

.profile-info h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .profile-info h1 {
    font-size: 2rem;
  }
}

.university {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .university {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .profile-stats {
    justify-content: flex-start;
    gap: 2rem;
  }
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

@media (min-width: 640px) {
  .stat-number {
    font-size: 1.5rem;
  }
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-600);
}

@media (min-width: 640px) {
  .stat-label {
    font-size: 0.875rem;
  }
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .profile-actions {
    width: auto;
    gap: 1rem;
  }
}

/* Profile Content */
.profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .profile-content {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.profile-section {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .profile-section {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .profile-section {
    padding: 2rem;
    margin-bottom: 2rem;
  }
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 1.5rem;
  }
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
}

.edit-btn {
  color: var(--gray-500);
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.edit-btn:hover {
  color: var(--primary);
  background-color: var(--gray-100);
}

.view-all {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Personal Information */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item label {
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
}

@media (min-width: 640px) {
  .info-item label {
    font-size: 0.875rem;
  }
}

.info-item span {
  color: var(--gray-800);
  font-weight: 500;
  word-break: break-word;
}


/* Emergency Contacts */
.emergency-contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: 0.5rem;
}

.contact-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-details {
  flex: 1;
}

.contact-details h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--gray-800);
}

.contact-details p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.contact-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.contact-action {
  width: 2rem;
  height: 2rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.contact-action:hover {
  background-color: #218838;
  transform: scale(1.1);
}

.contact-call {
  background: var(--secondary);
}

.contact-call:hover {
  background-color: #218838;
}

.contact-edit {
  background: var(--primary);
}

.contact-edit:hover {
  background-color: #c04d15;
}

.contact-delete {
  background: #dc3545;
}

.contact-delete:hover {
  background-color: #c82333;
}

.add-contact {
  margin-top: 0.5rem;
}

/* Preferences */
#preferencesDisplayContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  #preferencesDisplayContainer {
    grid-template-columns: 1fr;
  }
}

.preference-item {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.preference-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preference-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}

.preference-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}

.preference-item select {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.5rem;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.modal {
  background: var(--white);
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  position: relative;
  border-top: 5px solid var(--primary);
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
    gap: 1rem;
  }
}

.modal-footer button {
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  width: 100%;
}

@media (min-width: 640px) {
  .modal-footer button {
    padding: 0.5rem 1rem;
    width: auto;
  }
}

.modal-footer .btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
}

.modal-footer .btn-outline {
  border: 1px solid var(--gray-300);
  background: white;
  color: var(--gray-700);
}

select[multiple] {
  height: 100px;
  padding: 0.5rem;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -0.25rem;
}

.footer-logo-icon i {
  color: var(--secondary);
  font-size: 2rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 20rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--white);
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--white);
}

.contactinfo li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .copyright {
    margin-bottom: 0;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

/* Set current year for footer copyright */
#current-year:after {
  content: attr(data-year);
}

.hover-edit {
  position: relative;
  cursor: pointer;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4); /* grey overlay */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.hover-edit:hover .avatar-overlay {
  opacity: 1;
}

.hover-edit:hover .edit-avatar-btn {
  background-color: #c04d15;         
}

@media (min-width: 1024px) {
  .navbar nav {
    max-width: 1500px;
    margin: 0 auto;
  }
}

/* Personal Information Modal Enhancements */
#personalInfoModal {
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

#personalInfoModal .modal {
  width: min(640px, 95vw);
  max-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#personalInfoModal .modal-body {
  padding: 2rem;
  overflow-y: auto;
}

#personalInfoModal .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

#personalInfoModal .form-group {
  display: flex;
  flex-direction: column;
}

#personalInfoModal .form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

#personalInfoModal .form-group label i {
  color: var(--primary);
  width: 16px;
  text-align: center;
  font-size: 0.875rem;
}

#personalInfoModal .form-group input,
#personalInfoModal .form-group select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: var(--white);
  font-family: inherit;
}

#personalInfoModal .form-group input:focus,
#personalInfoModal .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(224, 94, 26, 0.1);
}

#personalInfoModal .form-group input::placeholder {
  color: var(--gray-400);
}

#personalInfoModal .custom-field {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

#personalInfoModal .form-group input[readonly] {
  background-color: var(--gray-100);
  color: var(--gray-600);
  cursor: not-allowed;
}

#personalInfoModal .field-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
  font-style: italic;
}

#personalInfoModal .modal-footer {
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

#personalInfoModal .modal-footer button {
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-width: 120px;
}

#personalInfoModal .btn-outline {
  background: var(--white);
  color: var(--gray-600);
  border: 2px solid var(--gray-300) !important;
}

#personalInfoModal .btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-400) !important;
  color: var(--gray-700);
}

#personalInfoModal .btn-primary {
  background: var(--primary);
  color: var(--white);
}

#personalInfoModal .btn-primary:hover {
  background: #c04d15;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 94, 26, 0.3);
}

#personalInfoModal .btn-primary:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #personalInfoModal .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  #personalInfoModal .modal {
    width: 95vw;
  }
  #personalInfoModal .modal-body {
    padding: 1.5rem;
  }
  
  #personalInfoModal .modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column-reverse;
  }
  
  #personalInfoModal .modal-footer button {
    width: 100%;
  }
}

/* ==================== University Search Styles ==================== */
.university-search-container {
  position: relative;
}

.university-search-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  margin-top: 2px;
  list-style: none;
}

.university-search-list li {
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease;
  list-style: none;
}

.university-search-list li:last-child {
  border-bottom: none;
  border-radius: 0 0 8px 8px;
}

.university-search-item:hover {
  background-color: #f9fafb;
}

.university-search-item .university-name {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
}

.university-search-item .university-name strong {
  color: var(--primary);
  font-weight: 600;
}

.university-search-loading,
.university-search-error,
.university-search-empty {
  padding: 20px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.university-search-error {
  color: #dc2626;
}

.university-search-loading i,
.university-search-error i,
.university-search-empty i {
  margin-right: 8px;
}

.university-search-custom {
  background-color: #fff8f3;
  font-weight: 500;
  color: var(--primary);
  border-top: 2px solid #fee2d5;
}

.university-search-custom:hover {
  background-color: #ffedd5;
}

.university-search-custom i {
  margin-right: 8px;
}
