:root {
  --deep-aqua: #8B4513;
  --ocean: #A0522D;
  --wave: #CD853F;
  --seafoam: #F5DEB3;
  --blush: #FF6B6B;
  --bs-body-bg: #f8f9fa;
  --bs-body-color: #212529;
  --bs-primary: var(--ocean);
  --bs-primary-rgb: 160,82,45;
  --bs-link-color: var(--ocean);
  --bs-link-hover-color: var(--deep-aqua);
  
  /* Override Bootstrap's annoying secondary color */
  --bs-secondary-color: #007cff !important;
  --bs-secondary: #D2B48C !important;
  --bs-secondary-bg: rgba(255, 255, 255, 0.1) !important;
  
  /* Light theme form variables */
  --bs-form-control-bg: rgba(255, 255, 255, 0.8) !important;
  --bs-form-control-color: #212529 !important;
  --bs-form-control-border-color: rgba(0, 0, 0, 0.15) !important;
  --bs-form-control-focus-border-color: #CD853F !important;
  --bs-form-control-focus-box-shadow: 0 0 0 0.25rem rgba(205, 133, 63, 0.25) !important;
  
  /* Enhanced status colors */
  --status-active: #10b981;
  --status-inactive: #6b7280;
  --status-pending: #f59e0b;
  --status-resigned: #8b5cf6;
  --status-terminated: #ef4444;
}

/* ------------------------------ */
/* Department Hierarchy Component */
/* ------------------------------ */

.department-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.department-box {
  margin: 0;
}

.department-people {
  margin-top: 0.5rem;
}

/* Responsive table for positions page */
.positions-table-wrapper {
  overflow-x: auto;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 550px;
}

.positions-table th,
.positions-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.positions-table th {
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  background: rgba(255, 255, 255, 0.05);
}

.positions-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 576px) {
  .positions-table th,
  .positions-table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }
}

.department-connector {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 576px) {
  .department-connector {
    font-size: 1.25rem;
  }
}

body {
  background-color: #f8f9fa;
  color: #212529;
  font-family: 'Rubik', 'Poppins', sans-serif;
  background-image: url('/css/bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  animation: bg-fade 0.8s ease-in-out;
  min-height: 100vh;
}

/* Page fade-in animation */
.content-wrapper {
  background-color: transparent;
  padding: 2rem;
  animation: page-fade-in 0.8s ease-out;
  margin-top: 1rem;
}

@keyframes page-fade-in {
  from { 
    opacity: 0; 
    transform: translateY(30px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

/* Modern Glassmorphism Navbar */
.navbar-glassmorphism {
  background: rgb(246 240 235);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 59, 70, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  z-index: 1050;
  opacity: 0.95;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-glassmorphism:hover {
  opacity: 1;
  box-shadow: 0 8px 32px rgba(0, 59, 70, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navbar-brand-modern {
  margin: 0;
}

.navbar-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: rgba(18, 22, 20, 0.637);
  text-decoration: none;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-title:hover {
  color: rgb(0, 0, 0);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.navbar-actions {
  flex-wrap: wrap;
}

.navbar-link {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.568);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.navbar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-link:hover {
  color: rgba(0, 32, 11, 0.527);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.navbar-link:hover::before {
  opacity: 1;
}

.navbar-btn {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #c34450a8;
  background: rgba(255, 255, 255, 0.103);
  border: 1px solid rgba(14, 0, 0, 0.25);
  border-radius: 16px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.navbar-btn:hover {
  color: rgb(116, 0, 0);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.navbar-btn:hover::before {
  left: 100%;
}

.navbar-btn:active {
  transform: translateY(0) scale(1);
  box-shadow: 
    0 2px 8px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive navbar adjustments */
@media (max-width: 768px) {
  .navbar-glassmorphism {
    padding: 0.75rem 0;
  }
  
  .navbar-title {
    font-size: 1.3rem;
  }
  
  .navbar-actions {
    gap: 0.5rem !important;
  }
  
  .navbar-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  
  .navbar-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .navbar-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem !important;
  }
  
  .navbar-link,
  .navbar-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

.navbar {
  background-color: var(--deep-aqua);
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #fff !important;
  transition: color 0.2s ease-in-out;
}

.navbar-brand:hover,
.navbar-nav .nav-link:hover {
  color: var(--wave) !important;
}

h1, h2, h3, h4, h5 {
  color: #212529;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
}

/* Enhanced page header styling with fade-in + slide-up animation */
.page-header {
  margin-bottom: 2rem;
  animation: fade-slide-up 0.8s ease-out 0.1s both;
  flex-wrap: wrap;
}

.page-header-title {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Glassmorphism Card Styling - Light Theme */
.glassmorphism-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
              0 4px 16px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: #212529;
  /* Remove auto animation - will be added via JS for better control */
}

.glassmorphism-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glassmorphism-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15),
              0 8px 24px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Smooth card entrance animation - only when needed */
.card-animate-in {
  animation: card-fade-in 0.6s ease-out forwards;
}

/* Seamless card addition animation */
.card-entering {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: seamless-card-enter 0.5s ease-out forwards;
}

.card-removing {
  animation: seamless-card-exit 0.4s ease-out forwards;
}

@keyframes seamless-card-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes seamless-card-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 500px;
    margin-bottom: 1.5rem;
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    max-height: 0;
    margin-bottom: 0;
    padding: 0;
  }
}

/* Staggered animation delays - only applied when card-animate-in class is present */
.card-animate-in:nth-child(1) { animation-delay: 0.1s; }
.card-animate-in:nth-child(2) { animation-delay: 0.2s; }
.card-animate-in:nth-child(3) { animation-delay: 0.3s; }
.card-animate-in:nth-child(4) { animation-delay: 0.4s; }
.card-animate-in:nth-child(5) { animation-delay: 0.5s; }
.card-animate-in:nth-child(6) { animation-delay: 0.6s; }

.card-image-container {
  position: relative;
  flex-shrink: 0;
}

.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card-avatar:hover {
  transform: scale(1.1) rotate(5deg);
}

.card-content {
  flex: 1;
  min-width: 0;
}

/* Utility for truncated text with ellipsis */
.truncate-tooltip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #000127c9;
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card-title:hover {
  color: #4960acc2;
  text-decoration: none;
}

.card-subtitle {
  font-family: 'Rubik', sans-serif;
  font-size: 0.875rem;
  color: rgb(255 0 94 / 70%);
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.card-meta {
  font-family: 'Rubik', sans-serif;
  font-size: 0.75rem;
  color: rgba(75, 75, 75, 0.781);
  font-weight: 400;
}

/* Inline layout for phone row to prevent icon wrapping */
.phone-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow: hidden;
    white-space: nowrap;
}

.phone-meta .truncate-tooltip {
    min-width: 0;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.card-actions > a,
.card-actions > form {
  flex: 1;
}
.card-actions > form {
  display: flex;
}

.btn-modern {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  border: 1px solid;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 85px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-modern-edit {
  background: rgba(138, 180, 248, 0.12);
  color: rgba(138, 180, 248, 0.95);
  border-color: rgba(138, 180, 248, 0.3);
}

.btn-modern-edit:hover {
  background: rgba(138, 180, 248, 0.25);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(138, 180, 248, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(138, 180, 248, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(138, 180, 248, 0.5);
}

.btn-modern-delete {
  background: rgba(248, 113, 113, 0.12);
  color: rgba(248, 113, 113, 0.95);
  border-color: rgba(248, 113, 113, 0.3);
}

.btn-modern-delete:hover {
  background: rgba(248, 113, 113, 0.25);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(248, 113, 113, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(248, 113, 113, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
}

.btn-modern-approve {
  background: rgba(16, 185, 129, 0.12);
  color: rgba(16, 185, 129, 0.95);
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-modern-approve:hover {
  background: rgba(16, 185, 129, 0.25);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(16, 185, 129, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.btn-modern-warning {
  background: rgba(245, 158, 11, 0.12);
  color: rgba(245, 158, 11, 0.95);
  border-color: rgba(245, 158, 11, 0.3);
}

.btn-modern-warning:hover {
  background: rgba(245, 158, 11, 0.25);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(245, 158, 11, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.btn-modern-danger {
  background: rgba(239, 68, 68, 0.12);
  color: rgba(239, 68, 68, 0.95);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-modern-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(239, 68, 68, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Enhanced Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.status-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-radius: 50px;
}

.status-badge.status-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: var(--status-active);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-active::before {
  content: '✅ ';
  margin-right: 0.25rem;
}

.status-badge.status-inactive {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(107, 114, 128, 0.1));
  color: var(--status-inactive);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-badge.status-inactive::before {
  content: '⏸️ ';
  margin-right: 0.25rem;
}

.status-badge.status-pending {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  color: var(--status-pending);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.status-pending::before {
  content: '⏳ ';
  margin-right: 0.25rem;
}

.status-badge.status-resigned {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  color: var(--status-resigned);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-badge.status-resigned::before {
  content: '👋 ';
  margin-right: 0.25rem;
}

.status-badge.status-terminated {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  color: var(--status-terminated);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.status-terminated::before {
  content: '❌ ';
  margin-right: 0.25rem;
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  animation: empty-fade-in 0.8s ease-out;
}

.empty-state-emoji {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  /* Removed excessive infinite bounce animation for professional appearance */
}

.empty-state h5 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.empty-state p {
  font-family: 'Rubik', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

@keyframes empty-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Removed excessive bounce animation keyframes for professional appearance */

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .glassmorphism-card {
    padding: 1.25rem;
  }
  
  .card-avatar {
    width: 50px;
    height: 50px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-actions {
    margin-top: 1rem;
    gap: 0.5rem;
  }
  
  .btn-modern {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    min-width: 75px;
  }
  
  .status-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
  
  .empty-state {
    padding: 3rem 1rem;
  }
  
  .empty-state-emoji {
    font-size: 3rem;
  }
}

/* Legacy styles for backward compatibility */
.table thead {
  background-color: var(--ocean);
  color: #fff;
}

.table,
.card {
  background-color: var(--seafoam);
}

.btn {
  border-radius: 0.5rem;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
}

/* Beautiful Light Theme Primary Buttons */
.btn-primary {
  background: linear-gradient(135deg, 
    rgba(160, 82, 45, 0.15),
    rgb(146 174 246 / 39%));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(160, 82, 45, 0.3);
  color: rgba(139, 69, 19, 0.9) !important;
  font-weight: 600;
  border-radius: 14px;
  padding: 0.7rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 12px rgba(160, 82, 45, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.15), 
    transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, 
    rgba(160, 82, 45, 0.25),
    rgb(146 174 246 / 50%));
  border-color: rgba(160, 82, 45, 0.5);
  color: rgba(139, 69, 19, 1) !important;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(146, 174, 246, 0.2),
    0 4px 12px rgba(160, 82, 45, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(146, 174, 246, 0.15),
    0 2px 6px rgba(160, 82, 45, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgb(239 231 225);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(203, 213, 225, 0.25);
  color: rgb(35 21 21 / 90%);
  font-weight: 600;
  border-radius: 14px;
  padding: 0.7rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(203, 213, 225, 0.15), 
    transparent);
  transition: left 0.6s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgb(239 231 225);
  border-color: rgba(203, 213, 225, 0.4);
  color: rgb(35 21 21 / 90%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(203, 213, 225, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 6px rgba(203, 213, 225, 0.4);
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:active {
  transform: translateY(0) scale(1);
  box-shadow: 
    0 2px 8px rgba(203, 213, 225, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: rgba(255, 107, 107, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: rgba(255, 107, 107, 0.95);
  font-weight: 600;
  border-radius: 14px;
  padding: 0.7rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 107, 107, 0.2), 
    transparent);
  transition: left 0.6s ease;
}

.btn-danger:hover,
.btn-danger:focus {
  background: rgba(255, 107, 107, 0.25);
  border-color: rgba(255, 107, 107, 0.5);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 32px rgba(255, 107, 107, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.btn-danger:hover::before {
  left: 100%;
}

.btn-danger:active {
  transform: translateY(0) scale(1);
  box-shadow: 
    0 2px 8px rgba(255, 107, 107, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Additional Glass Button Variants */




/* Glass Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 12px;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
  border-radius: 16px;
}

.modal-content {
  background-color: var(--deep-aqua);
  color: #fff;
  border-radius: 0.5rem;
}

.modal-header,
.modal-footer {
  border-color: var(--ocean);
  background-color: var(--ocean);
  color: #fff;
}



@keyframes bg-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}



/* Ensure collapsed navbar content displays properly on mobile */
.navbar-collapse {
  flex-basis: 100%;
}

.navbar-collapse.show {
  background-color: var(--deep-aqua);
  padding: 0.5rem 1rem;
}

/* Stack nav items and logout button vertically on small screens */
@media (max-width: 991.98px) {
  .navbar-collapse .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Bootstrap override for empty-state text colors */
.empty-state h5,
.glassmorphism-card.empty-state h5 {
  color: #DEB887 !important;
  text-shadow: 0 0 15px rgba(222, 184, 135, 0.5) !important;
}

.empty-state p,
.glassmorphism-card.empty-state p {
  color: #CD853F !important;
  text-shadow: 0 0 10px rgba(205, 133, 63, 0.3) !important;
}

/* Fix Bootstrap tooltips for dark theme */
.tooltip {
  --bs-tooltip-bg: rgba(0, 0, 0, 0.9) !important;
  --bs-tooltip-color: #ffffff !important;
}

.tooltip .tooltip-inner {
  background-color: rgba(0, 0, 0, 0.9) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.tooltip .tooltip-arrow::before {
  border-top-color: rgba(0, 0, 0, 0.9) !important;
  border-bottom-color: rgba(0, 0, 0, 0.9) !important;
  border-left-color: rgba(0, 0, 0, 0.9) !important;
  border-right-color: rgba(0, 0, 0, 0.9) !important;
}

/* BEAUTIFUL LIGHT FORM STYLING */
.form-control,
.form-select,
textarea.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
select.form-control,
select.form-select {
  background-color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #212529 !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="number"]:focus,
select.form-control:focus,
select.form-select:focus {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: #CD853F !important;
  box-shadow: 0 0 0 0.25rem rgba(205, 133, 63, 0.25), 
              0 0 20px rgba(205, 133, 63, 0.2) !important;
  color: #212529 !important;
  outline: none !important;
}

.form-control::placeholder,
.form-select::placeholder,
textarea.form-control::placeholder,
input::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
}

/* Form labels styling */
.form-label,
label {
  color: #212529 !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
  font-family: 'Rubik', sans-serif !important;
}

/* Select dropdown styling */
.form-select option {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

/* Form validation states */
.form-control.is-valid,
.form-select.is-valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25) !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25) !important;
}

/* BEAUTIFUL DARK FILE INPUT STYLING */
.form-control[type="file"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 2px dashed rgba(255, 255, 255, 0.2) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  color: #ffffff !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  position: relative !important;
}

.form-control[type="file"]:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(116, 192, 252, 0.5) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.form-control[type="file"]:focus {
  border-color: #74c0fc !important;
  box-shadow: 0 0 0 0.25rem rgba(116, 192, 252, 0.25), 
              0 0 20px rgba(116, 192, 252, 0.3) !important;
  outline: none !important;
}

/* File input pseudo-elements styling */
.form-control[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #74c0fc, #5b9df4) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  margin-right: 1rem !important;
  margin-bottom: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-family: 'Rubik', sans-serif !important;
}

.form-control[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #5b9df4, #3b82f6) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(116, 192, 252, 0.4) !important;
}

/* WebKit file input styling */
.form-control[type="file"]::-webkit-file-upload-button {
  background: linear-gradient(135deg, #74c0fc, #5b9df4) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  margin-right: 1rem !important;
  margin-bottom: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-family: 'Rubik', sans-serif !important;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, #5b9df4, #3b82f6) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(116, 192, 252, 0.4) !important;
}

/* Custom file input text styling */
.form-control[type="file"]::after {
  content: "📁 Drop your file here or click to browse" !important;
  display: block !important;
  color: rgba(0, 0, 0, 0.7) !important;
  font-size: 0.9rem !important;
  margin-top: 0.5rem !important;
}

/* Loading animation for AJAX operations */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(116, 192, 252, 0.3);
  border-top: 3px solid #74c0fc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success/Error toast notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Glassy table container for modern data lists */
.glass-table-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.position-children{margin-left:1rem;}
.position-toggle{line-height:1;}

/* -------------------------------------------------- */
/* Company & Department Mobile Tweaks (June 21 2025) */
/* -------------------------------------------------- */
@media (max-width: 576px) {
  /* Stack page headers vertically on small devices */
  .page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Make header buttons full-width for easier tapping */
  .page-header .btn {
    width: 100%;
    text-align: center;
  }

  /* Soften card padding on extra-small screens */
  .glassmorphism-card {
    padding: 1rem;
  }

  /* Shrink avatar thumbnails for space efficiency */
  .card-avatar {
    width: 42px;
    height: 42px;
  }

  /* Adjust title sizing for narrow viewports */
  .card-title {
    font-size: 1rem;
  }

  /* Allow action buttons to wrap nicely */
  .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .card-actions > a,
  .card-actions > form {
    flex: 1 0 48%;
  }

  .card-actions > form {
    display: flex;
  }

  .card-actions .btn-modern {
    width: 100%;
    text-align: center;
  }
}

/* ----------------------------- */
/* Position Tree Responsive Fix */
/* ----------------------------- */
.position-node {
  flex-wrap: wrap;
}

.position-name {
  word-break: break-word;
  min-width: 0;
}

.position-title {
  white-space: nowrap;
}

/* On extra-small screens, allow control buttons to take full width if needed */
@media (max-width: 576px) {
  .position-node .btn {
    flex: 0 0 auto;
  }
}

/* Validation Error Glassmorphism */
.validation-errors-glass {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.35);
    border-left-width: 4px;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: #ff7676;
    font-family: 'Rubik', sans-serif;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}

.validation-errors-glass h5 {
    font-size: 1.1rem;
    color: #ff9494;
}

.validation-errors-glass ul {
    margin: 0;
    padding-left: 1.25rem;
}

.validation-errors-glass li {
    list-style: disc;
    line-height: 1.4;
}

.validation-errors-glass i {
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

/* Search Input Components - Global Glass Search Styling */
/* IMPORTANT: This overrides all other search styling for consistency */
.search-container {
  position: relative !important;
  width: 100% !important;
  max-width: 400px !important;
}

.search-glass-input {
  position: relative !important;
  width: 100% !important;
}

.search-input {
  width: 100% !important;
  padding: 0.9rem 1rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  color: rgba(0, 0, 0, 0.85) !important;
  font-family: 'Rubik', sans-serif !important;
  font-size: 1rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #CD853F !important;
  outline: none !important;
  box-shadow: 0 0 0 0.25rem rgba(205, 133, 63, 0.25) !important;
  color: rgba(0, 0, 0, 0.85) !important;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.55) !important;
}

.search-icon {
  display: none !important;
}

/* Additional mobile responsiveness for search */
@media (max-width: 768px) {
  .search-container {
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .search-input {
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem !important;
  }
}

/* ================================================= */
/* Admin Pending Users - Beautiful Horizontal Layout */
/* ================================================= */
.admin-pending-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.admin-pending-actions > form {
  flex: 1;
  display: flex;
}

.admin-pending-actions .btn-modern {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.55rem 0.4rem;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  line-height: 1.2;
}

/* Optimize button text for better fit */
.admin-pending-actions .btn-modern-approve {
  /* Approve is shortest - no special treatment needed */
}

.admin-pending-actions .btn-modern-warning {
  font-size: 0.75rem; /* Slightly smaller for "Disapprove" */
}

.admin-pending-actions .btn-modern-danger {
  font-size: 0.72rem; /* Smallest for "Block IP" */
  padding: 0.55rem 0.3rem;
}

/* Large screens - more comfortable spacing */
@media (min-width: 1200px) {
  .admin-pending-actions {
    gap: 0.75rem;
  }
  
  .admin-pending-actions .btn-modern {
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
  }
  
  .admin-pending-actions .btn-modern-warning {
    font-size: 0.8rem;
  }
  
  .admin-pending-actions .btn-modern-danger {
    font-size: 0.78rem;
    padding: 0.6rem 0.5rem;
  }
}

/* Medium screens - maintain horizontal layout */
@media (max-width: 991px) {
  .admin-pending-actions {
    gap: 0.4rem;
  }
  
  .admin-pending-actions .btn-modern {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
  
  .admin-pending-actions .btn-modern-warning {
    font-size: 0.7rem;
  }
  
  .admin-pending-actions .btn-modern-danger {
    font-size: 0.68rem;
  }
}

/* Small screens - stack vertically only when really needed */
@media (max-width: 576px) {
  .admin-pending-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .admin-pending-actions > form {
    flex: none;
  }
  
  .admin-pending-actions .btn-modern {
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
    white-space: normal;
  }
  
  .admin-pending-actions .btn-modern-warning,
  .admin-pending-actions .btn-modern-danger {
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
  }
}

.glassmorphism-card .btn-modern {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* File Upload Area */
.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: rgba(255, 255, 255, 0.05);
}

.file-drop-area.is-active {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.file-drop-area .file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.file-drop-area .file-msg {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7);
    transition: color 0.2s;
}

.file-drop-area:hover .file-msg {
    color: rgba(0, 0, 0, 0.9);
}

/* --------------------------------------- */
/* Universal Glass Back Button             */
/* --------------------------------------- */

.btn-glass-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 14px;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    color: rgb(24 40 61 / 53%);
    background: rgb(18 18 18 / 5%);
    border: 0.5px solid rgb(210 212 215);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass-back:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgb(24 40 61 / 53%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.btn-glass-back:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.btn-glass-back i {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .btn-glass-back {
        padding: 0.5rem 0.75rem;
    }
}

/* =============================================== */
/* Glass Hub Buttons - Premium Navigation Cards   */
/* =============================================== */

.btn-glass-hub {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: rgb(38 49 69 / 90%);
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 
    0 12px 40px rgba(0, 59, 70, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-glass-hub::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-glass-hub::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(205, 133, 63, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-glass-hub:hover {
  transform: translateY(-6px) scale(1.02);
  color: rgb(38 49 69 / 90%);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 20px 60px rgba(0, 59, 70, 0.35),
    0 8px 32px rgba(205, 133, 63, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.btn-glass-hub:hover::before {
  left: 100%;
}

.btn-glass-hub:hover::after {
  opacity: 1;
}

.btn-glass-hub:active {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 
    0 12px 32px rgba(0, 59, 70, 0.3),
    0 4px 16px rgba(205, 133, 63, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-glass-hub i {
  font-size: 1.4rem;
  margin-right: 0.875rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.btn-glass-hub:hover i {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 4px 12px rgba(205, 133, 63, 0.5));
}

/* Hub button container improvements */
.hub-button-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hub-button-container {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

/* Responsive adjustments for glass hub buttons */
@media (max-width: 768px) {
  .btn-glass-hub {
    padding: 1.25rem 2rem;
    min-width: 180px;
    font-size: 1rem;
  }
  
  .btn-glass-hub i {
    font-size: 1.3rem;
    margin-right: 0.75rem;
  }
  
  .hub-button-container {
    gap: 1.25rem;
  }
}

@media (max-width: 576px) {
  .btn-glass-hub {
    padding: 1rem 1.5rem;
    min-width: 160px;
    font-size: 0.95rem;
    border-radius: 16px;
  }
  
  .btn-glass-hub i {
    font-size: 1.2rem;
    margin-right: 0.625rem;
  }
  
  .hub-button-container {
    gap: 1rem;
    margin-top: 1.5rem;
  }
}

/* =============================================== */
/* Glass Action Buttons - For Create/Add Actions  */
/* =============================================== */

.btn-glass-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: rgb(239 230 225 / 31%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(205, 134, 63, 0.178);
  border-radius: 14px;
  color: rgba(48, 54, 61, 0.747);
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 
    0 8px 24px rgba(205, 133, 63, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-glass-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-glass-action:hover {
  transform: translateY(-2px);
  color: rgb(0, 0, 0);
  background: rgb(239 230 225 / 31%);
  border-color: rgba(205, 133, 63, 0.35);
  box-shadow: 
    0 12px 32px rgba(205, 133, 63, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-glass-action:hover::before {
  left: 100%;
}

.btn-glass-action:active {
  transform: translateY(-1px);
  box-shadow: 
    0 6px 16px rgba(205, 133, 63, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-glass-action i {
  margin-right: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-glass-action:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(205, 133, 63, 0.4));
}

/* Responsive adjustments for glass action buttons */
@media (max-width: 768px) {
  .btn-glass-action {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .btn-glass-action {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .btn-glass-action i {
    margin-right: 0.375rem;
    font-size: 0.9rem;
  }
}

/* Enhanced Glass Modal for Car Photos */
.car-photo-modal {
  background: rgba(13, 27, 42, 0.95) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  position: relative !important;
  max-height: 90vh !important;
}

.car-photo-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(205, 133, 63, 0.05) 0%,
    rgba(7, 87, 91, 0.08) 50%,
    rgba(13, 27, 42, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.btn-close-glass {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-close-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.car-photo-header {
  padding: 24px 24px 16px;
  position: relative;
  z-index: 5;
  text-align: center;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.car-photo-title {
  font-family: 'Rubik', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.car-photo-title i {
  color: rgba(205, 133, 63, 0.9);
  font-size: 1.25rem;
}

.car-photo-subtitle {
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin-top: 4px;
}

.car-photo-container {
  padding: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  max-height: calc(90vh - 120px);
  overflow: hidden;
}

.car-photo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.car-photo-image:hover {
  transform: scale(1.02);
}

/* Enhanced Modal Backdrop */
.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Modal Animation Enhancements */
.modal.fade .car-photo-modal {
  transform: scale(0.8) translateY(-50px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.show .car-photo-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .car-photo-modal {
    margin: 10px;
    max-height: calc(100vh - 20px) !important;
    border-radius: 20px !important;
  }
  
  .btn-close-glass {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .car-photo-header {
    padding: 20px 20px 12px;
  }
  
  .car-photo-title {
    font-size: 1.25rem;
  }
  
  .car-photo-container {
    min-height: 300px;
    max-height: calc(100vh - 140px);
  }
}

/* =============================================== */
/* Beautiful Underlined Links - Auth Forms       */
/* =============================================== */

.text-decoration-underline {
  position: relative;
  color: var(--ocean) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, 
    rgba(160, 82, 45, 0.08),
    rgba(205, 133, 63, 0.12));
  border: 1px solid rgba(160, 82, 45, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.text-decoration-underline:hover {
  color: var(--deep-aqua) !important;
  background: linear-gradient(135deg, 
    rgba(139, 69, 19, 0.15),
    rgba(160, 82, 45, 0.2));
  border-color: rgba(139, 69, 19, 0.4);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
  transform: translateY(-1px);
}

/* Extra enhancement for light theme auth forms */
.glassmorphism-card .text-decoration-underline {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.glassmorphism-card .text-decoration-underline:hover {
  text-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

/* Subtle glow animation */
.text-decoration-underline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.text-decoration-underline:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
