/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --text-muted: #8b949e;
  
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
  
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* Navbar */
.navbar {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.admin-link {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.nav-link.admin-link:hover {
  background: rgba(34, 197, 94, 0.2);
  color: white;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--text-primary);
  font-weight: 500;
}

.admin-badge {
  background: var(--success);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.logout-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
}

.logout-btn:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.burger-line {
  width: 2rem;
  height: 0.25rem;
  background: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-toggle.active .burger-line:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-toggle.active .burger-line:last-child {
  transform: rotate(-45deg);
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    position: relative;
    justify-content: space-between;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 5rem;
    gap: 1.5rem;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 90%;
    text-align: center;
    border-radius: 12px;
    border: 1px solid transparent;
  }
  
  .nav-link:hover {
    border-color: var(--glass-border);
    background: var(--glass-bg);
  }
  
  .user-menu {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    width: 90%;
    align-items: center;
    text-align: center;
  }
  
  .user-name {
    font-size: 1.1rem;
  }
  
  .logout-btn {
    padding: 0.75rem 2rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    font-size: 1rem;
  }
}

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.admin-sidebar {
  width: 320px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.admin-sidebar-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.admin-user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.admin-user-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-nav {
  flex: 1;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.admin-nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
}

.admin-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
  margin-bottom: 0.25rem;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-left-color: rgba(102, 126, 234, 0.3);
}

.admin-nav-item.active {
  background: rgba(102, 126, 234, 0.1);
  color: var(--text-primary);
  border-left-color: #667eea;
}

.nav-item-icon {
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.nav-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item-title {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-item-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-nav-footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.back-to-app-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  justify-content: center;
}

.back-to-app-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: translateX(-2px);
}

.admin-nav-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1rem 1.5rem;
}

.admin-content {
  flex: 1;
  padding: 2rem;
  background: var(--bg-primary);
}

.admin-page {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.admin-page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-page-header p {
  color: var(--text-secondary);
}

/* Landing Page */
.landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
}

/* Landing Navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.landing-nav-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.landing-nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-btn {
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9rem;
}

.nav-btn:not(.primary) {
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  background: transparent;
}

.nav-btn:not(.primary):hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.nav-btn.primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.nav-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding: 6rem 2rem 2rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 3rem;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.glass-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);
}

.logo-section {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-circle {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--success);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.features-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.feature-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.feature-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cta-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.cta-button.secondary:hover {
  background: var(--glass-bg);
}

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: orbit 20s linear infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-gradient);
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-gradient);
  bottom: 30%;
  left: 20%;
  animation-delay: 10s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: var(--accent-gradient);
  top: 60%;
  right: 30%;
  animation-delay: 15s;
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(50px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

/* Floating Cards - Desktop only */
.floating-cards {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  animation: float 8s ease-in-out infinite;
  opacity: 0.8;
  width: 160px;
}

.card-1 {
  top: 20%;
  left: 8%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 10%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 25%;
  left: 15%;
  animation-delay: 4s;
}

/* Hide floating cards on mobile and tablet */
@media (max-width: 1024px) {
  .floating-cards {
    display: none;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.card-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.chart-bar {
  width: 8px;
  background: var(--primary-gradient);
  border-radius: 2px;
  animation: chart-grow 2s ease-in-out infinite;
}

@keyframes chart-grow {
  0%, 100% { transform: scaleY(0.8); }
  50% { transform: scaleY(1.2); }
}

.trip-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trip-dot {
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
}

.trip-dot.active {
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.trip-line {
  width: 20px;
  height: 2px;
  background: var(--glass-border);
}

.user-avatars {
  display: flex;
  gap: -8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid var(--bg-primary);
}

.avatar-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  margin-left: -8px;
}

.avatar-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  margin-left: -8px;
}

/* Landing Footer */
.landing-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: rgba(15, 15, 35, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy p {
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 1rem;
  }
  
  .landing-nav-brand a {
    font-size: 1.3rem;
  }
  
  .nav-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .hero-section {
    padding: 5rem 1rem 2rem;
  }
  
  .glass-card {
    padding: 2rem;
    max-width: 100%;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-copy {
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .landing-footer {
    position: relative;
    margin-top: 2rem;
  }
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select option,
.invite-form-group select option,
.expense-form-group select option,
.payment-form-group select option,
.settlement-form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.auth-button {
  padding: 0.75rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.auth-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.auth-footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dashboard */
.dashboard-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.dashboard-content {
  margin-top: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  color: var(--text-primary);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-danger {
  background: var(--error);
  color: white;
}

.btn-small,
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.permission-hint {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Trips Grid */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.trip-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.trip-header h3 {
  margin-bottom: 0.5rem;
}

.trip-header h3 a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
}

.trip-header h3 a:hover {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trip-dates {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.trip-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.trip-members {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-avatars {
  display: flex;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid var(--bg-primary);
  margin-left: -8px;
  color: white;
}

.member-avatar:first-child {
  margin-left: 0;
}

.member-avatar.more {
  background: var(--text-muted);
  font-size: 0.7rem;
}

.member-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trip-expenses {
  text-align: right;
}

.expense-amount {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.expense-count {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.trip-progress {
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.progress-info {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-info.upcoming {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.progress-info.active {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.progress-info.completed {
  background: rgba(139, 148, 158, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(139, 148, 158, 0.3);
}

/* Trip Show Page Styles */
.trip-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.trip-header {
  margin-bottom: 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.trip-title-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.trip-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trip-dates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.trip-dates svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.trip-duration {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  margin-left: 0.25rem;
  line-height: 1;
}

.trip-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

.trip-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-item .stat-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
}

.stat-item .stat-content {
  display: flex;
  flex-direction: column;
}

.stat-item .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trip-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.member-card .member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-sm);
}

.member-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.member-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.member-role {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-role.admin {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.member-role.member {
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-secondary);
  border: 1px solid rgba(139, 148, 158, 0.3);
}

.member-role.admin::before {
  content: '👑';
  margin-right: 0.2rem;
}

.member-role.member::before {
  content: '👤';
  margin-right: 0.2rem;
}

/* Member Balance Styles */
.member-balance {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.balance-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.balance-line {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.balance-line strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.balance-result {
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.balance-amount {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.balance-amount.positive {
  color: var(--success);
}

.balance-amount.negative {
  color: var(--error);
}

.balance-amount.neutral {
  color: var(--text-muted);
}

.balance-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-amount.positive + .balance-label::before {
  content: '💰 ';
}

.balance-amount.negative + .balance-label::before {
  content: '💸 ';
}

.balance-amount.neutral + .balance-label::before {
  content: '✅ ';
}

/* Invitation Items */
.invite-badge {
  background: var(--warning);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.invitations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.invitation-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.invitation-info {
  flex: 1;
}

.invitation-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.user-avatar.pending {
  background: var(--warning);
  opacity: 0.8;
}

.user-details h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}

.invitation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.invitation-role.admin {
  color: var(--success);
  font-weight: 500;
}

.invitation-message {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

.invitation-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.invitation-status.pending {
  color: var(--warning);
  font-weight: 500;
  font-size: 0.8rem;
}

.invitation-controls {
  display: flex;
  gap: 0.5rem;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 90px;
  justify-content: center;
}

.copy-btn .btn-text {
  font-size: 0.7rem;
}

/* NEUE AUSGABEN STYLES - MINIMIERT/MAXIMIERT */
.expenses-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.expense-category {
  margin-bottom: 2rem;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--glass-border);
  margin-bottom: 1rem;
}

.category-icon {
  font-size: 1.3rem;
}

.category-total {
  margin-left: auto;
  color: var(--text-secondary);
}

.expense-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* NEUE MINIMIERTE AUSGABEN CONTAINER */
.expense-item-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: var(--transition);
  overflow: hidden;
}

.expense-item-container:hover {
  background: rgba(255, 255, 255, 0.05);
}

.expense-item-container.due-soon {
  border-left: 4px solid var(--warning);
  background: rgba(245, 158, 11, 0.05);
}

.expense-item-container.overdue {
  border-left: 4px solid var(--error);
  background: rgba(239, 68, 68, 0.05);
}

/* MINIMIERTE ANSICHT */
.expense-item-minimized {
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.expense-item-minimized:hover {
  background: rgba(255, 255, 255, 0.03);
}

.expense-item-minimized.expanded {
  border-bottom: 1px solid var(--glass-border);
}

.expense-main-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.expense-title-section {
  flex: 1;
}

.expense-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-icon-small {
  font-size: 1rem;
  opacity: 0.9;
}

.expense-description-mini {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
  opacity: 0.8;
}

.expense-amount-main {
  text-align: right;
  flex-shrink: 0;
  margin-left: 2rem;
}

.amount-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.amount-currency {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-left: 0.3rem;
}

.expense-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expense-meta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.expense-date-mini,
.expense-payer-mini {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.expense-status-indicators {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
}

.status-icon.payment-status-paid {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-icon.payment-status-partial {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-icon.payment-status-unpaid {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-icon.due-date-due-soon {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.status-icon.due-date-overdue {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.status-icon.due-date-future {
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-muted);
}

.status-icon.outstanding-indicator {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.expand-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.expand-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

/* MAXIMIERTE ANSICHT */
.expense-item-maximized {
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.expense-actions-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.expense-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-action.edit-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
  color: #667eea;
}

.btn-action.payment-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--warning);
}

.btn-action.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--error);
}

.expense-description-full {
  margin-bottom: 1.5rem;
}

.expense-description-full h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.expense-description-full p {
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.expense-meta-full {
  margin-bottom: 1.5rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.expense-payments-detailed,
.expense-shares-detailed {
  margin-bottom: 1.5rem;
}

.expense-payments-detailed h5,
.expense-shares-detailed h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.payment-status-grid,
.shares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.payment-status-card,
.share-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem;
}

.payment-user-info,
.share-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.user-name,
.share-user-name {
  font-weight: 500;
  color: var(--text-primary);
}

.payment-amounts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.amount-label {
  color: var(--text-muted);
}

.amount-value {
  font-weight: 500;
}

.amount-value.owed {
  color: var(--text-secondary);
}

.amount-value.paid {
  color: var(--success);
}

.amount-value.outstanding {
  color: var(--warning);
}

.amount-value.settled {
  color: var(--success);
}

.share-amount-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.share-amount {
  font-weight: 600;
  color: var(--text-primary);
}

.share-percentage {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Due Date Badges */
.due-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.due-date-badge.due-soon {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.due-date-badge.overdue {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.due-date-badge.future {
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(139, 148, 158, 0.3);
}

/* SETTLEMENTS STYLES */
.settlements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settlement-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

.settlement-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.settlement-main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.settlement-users {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.settlement-payer,
.settlement-receiver {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settlement-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.settlement-details {
  text-align: center;
  flex-shrink: 0;
}

.settlement-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.settlement-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.settlement-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.settlement-actions {
  flex-shrink: 0;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.btn-icon.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--error);
}

/* Balance Summary */
.balance-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.balance-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.balance-details {
  margin-left: auto;
  text-align: right;
}

.balance-breakdown {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.balance-result {
  font-weight: 600;
  font-size: 1.1rem;
}

.balance-result.positive {
  color: var(--success);
}

.balance-result.negative {
  color: var(--error);
}

.all-settled {
  text-align: center;
  padding: 3rem 2rem;
}

.settled-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.all-settled h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--success);
}

.all-settled p {
  color: var(--text-secondary);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex !important;
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.invite-modal {
  max-width: 500px;
  width: 90%;
}

.expense-modal,
.payment-modal,
.settlement-modal,
.travel-item-modal {
  max-width: 700px;
  width: 95%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
  border-radius: 6px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  max-height: calc(90vh - 140px);
}

.modal-actions {
  flex-shrink: 0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
}

/* Form Styles in Modals */
.invite-form-section,
.expense-form-section,
.payment-form-section,
.settlement-form-section {
  margin-bottom: 2rem;
}

.invite-form-section h4,
.expense-form-section h4,
.payment-form-section h4,
.settlement-form-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.invite-section-description,
.expense-section-description,
.settlement-section-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.invite-form-group,
.expense-form-group,
.payment-form-group,
.settlement-form-group {
  margin-bottom: 1.5rem;
}

.invite-form-group label,
.expense-form-group label,
.payment-form-group label,
.settlement-form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.invite-form-group input,
.invite-form-group select,
.invite-form-group textarea,
.expense-form-group input,
.expense-form-group select,
.expense-form-group textarea,
.payment-form-group input,
.payment-form-group select,
.payment-form-group textarea,
.settlement-form-group input,
.settlement-form-group select,
.settlement-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.invite-form-group input:focus,
.invite-form-group select:focus,
.invite-form-group textarea:focus,
.expense-form-group input:focus,
.expense-form-group select:focus,
.expense-form-group textarea:focus,
.payment-form-group input:focus,
.payment-form-group select:focus,
.payment-form-group textarea:focus,
.settlement-form-group input:focus,
.settlement-form-group select:focus,
.settlement-form-group textarea:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.invite-form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Checkbox Styles */
.checkbox-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0;
  accent-color: #667eea;
}

.checkbox-label span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Split Options */
.split-members {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.split-member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  flex-shrink: 0;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.member-name {
  font-weight: 500;
}

.member-split-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.split-amount-input,
.edit-split-amount-input {
  width: 100px !important;
  padding: 0.5rem !important;
  text-align: right;
}

.currency,
.edit-currency {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.split-summary {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-weight: 600;
  flex-shrink: 0;
}

.split-total,
.split-remaining {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* User Search */
.quick-invite-search {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-top: 0.25rem;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.search-result-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.search-result-info h5 {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 0.1rem 0;
}

.search-result-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Payment Modal Specific */
.payment-expense-info {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.expense-summary h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.expense-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.amount-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.amount-item.outstanding .value {
  color: var(--warning);
  font-weight: 600;
}

.amount-item.paid .value {
  color: var(--success);
  font-weight: 600;
}

.existing-payments-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.payment-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.payment-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.payment-amount {
  font-weight: 600;
  color: var(--text-primary);
}

.payment-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.payment-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.empty-payments {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 2rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--error);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}

/* Radio Buttons */
input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: #667eea;
}

label {
  cursor: pointer;
  font-weight: 500;
}

/* Scrollbar Styles */
.modal-body::-webkit-scrollbar,
.split-members::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track,
.split-members::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb,
.split-members::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.split-members::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Due Date Styling */
.expense-due-date {
  color: var(--warning) !important;
  font-weight: 500;
  opacity: 0.9;
}

.expense-due-date[title]:hover {
  opacity: 1;
}

/* Mobile Responsive - Admin Layout only */
@media (max-width: 768px) {
  
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .admin-nav {
    display: flex;
    overflow-x: auto;
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .admin-nav-item {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 6px;
  }
  
  .admin-nav-item:hover,
  .admin-nav-item.active {
    border-left: none;
    border-bottom-color: #667eea;
  }
  
  .admin-content {
    padding: 1rem;
  }
  
  .dashboard-container,
  .trip-container {
    padding: 1rem;
  }
  
  .dashboard-header h1 {
    font-size: 2rem;
  }
  
  .trip-title-section h1 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .trips-grid {
    grid-template-columns: 1fr;
  }
  
  .trip-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .members-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .member-card {
    text-align: center;
    padding: 1.5rem;
  }
  
  .member-card .member-avatar {
    margin: 0 auto 1rem;
  }
  
  .balance-details {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .expense-main-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .expense-amount-main {
    text-align: left;
    margin-left: 0;
  }
  
  .expense-meta-row {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .expense-status-indicators {
    align-self: flex-end;
  }
  
  .balance-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .balance-details {
    margin-left: 0;
    text-align: center;
  }
  
  .balance-breakdown {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .settlement-main {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .settlement-users {
    justify-content: center;
  }
  
  .glass-card {
    padding: 2rem;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .floating-cards {
    display: none;
  }
  
  .invite-modal,
  .expense-modal,
  .payment-modal,
  .settlement-modal {
    margin: 1rem;
    width: calc(100% - 2rem);
    max-height: 95vh;
  }
  
  .modal-body {
    max-height: calc(95vh - 140px);
    padding: 1.5rem;
  }
  
  .modal-header,
  .modal-actions {
    padding: 1rem 1.5rem;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .invitation-item {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .invitation-actions {
    align-items: stretch;
  }
  
  .invitation-controls {
    justify-content: center;
    width: 100%;
  }
  
  .invitation-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .member-balance {
    margin-top: 1rem;
  }
  
  .balance-result {
    align-items: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .checkbox-wrapper {
    margin-top: 1rem;
  }
  
  .payment-status-card,
  .share-card {
    padding: 0.8rem;
  }
  
  .payment-status-grid,
  .shares-grid {
    grid-template-columns: 1fr;
  }
  
  .meta-grid {
    grid-template-columns: 1fr;
  }
  
  .expense-amounts {
    grid-template-columns: 1fr;
  }
  
  .payment-item {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .payment-info {
    justify-content: space-between;
  }
  
  .split-member-item {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .member-split-input {
    justify-content: center;
  }
  
  .split-summary {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .split-members {
    max-height: 250px;
  }
  
  .copy-btn {
    min-width: 80px;
  }
  
  .copy-btn .btn-text {
    display: none;
  }
  
  .expense-meta-left {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .expense-actions {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  
  .btn-action {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
}

/* Additional mobile adjustments */
@media (max-width: 480px) {
  .trip-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    flex-direction: column;
    text-align: center;
  }
  
  .breadcrumb {
    flex-wrap: wrap;
  }
  
  .trip-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }
  
  .expense-actions-header {
    justify-content: center;
  }
}

/* ============================================================================
   TRAVEL PLANNER STYLES
   ============================================================================ */

.travel-planner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.travel-planner-header {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.travel-planner-content {
  flex: 1;
  min-width: 0;
}

.travel-planner-title {
  margin-bottom: 20px;
}

.travel-planner-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Progress Stats */
.travel-progress {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
}

.progress-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.progress-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 5px;
}

.progress-divider {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Action Buttons */
.travel-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
  width: 200px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--glass-bg);
  border: 2px solid var(--primary-gradient);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .travel-planner-header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  
  .travel-planner-title h1 {
    font-size: 2rem;
  }
  
  .travel-progress {
    justify-content: center;
    gap: 15px;
  }
  
  .progress-item {
    min-width: 70px;
  }
  
  .progress-number {
    font-size: 1.5rem;
  }
  
  .travel-actions {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .travel-progress {
    flex-direction: column;
    gap: 10px;
  }
  
  .progress-divider {
    display: none;
  }
  
  .travel-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    justify-content: center;
    width: 100%;
  }
}

/* ============================================================================
   TRAVEL PLANNER DETAIL ITEMS
   ============================================================================ */

.detail-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.detail-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-item-header h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-item-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--glass-bg);
}

.detail-item-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.meta-tag {
  background: var(--primary-gradient);
  color: white;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.meta-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-item-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 5px;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 20px;
}