/* Customer Dashboard - Start House Modern Style */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-gold: #d4af37;
  --dark-gold: #b8941f;
  --charcoal: #2c2c2c;
  --light-charcoal: #3a3a3a;
  --red-accent: #dc2626;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);
  --gradient-gold: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
  --gradient-dark: linear-gradient(135deg, var(--charcoal) 0%, var(--light-charcoal) 100%);
}

/* Dashboard Header */
.dashboard-header {
  background: var(--gradient-dark);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.welcome-content {
  flex: 1;
}

.welcome-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.welcome-title i {
  color: var(--primary-gold);
  margin-right: 0.5rem;
}

.welcome-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.weather-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-info i {
  font-size: 1.5rem;
  color: var(--primary-gold);
}

.temperature {
  font-size: 1.3rem;
  font-weight: 600;
}

.weather-details {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.weather-details small {
  opacity: 0.8;
  font-size: 0.8rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
  transition: left 0.6s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.stat-icon.nights {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-icon.remaining {
  background: var(--gradient-gold);
}

.stat-icon.guests {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.services {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
  line-height: 1;
}

.stat-content p {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin: 0.25rem 0 0 0;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Dashboard Cards */
.dashboard-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  box-shadow: var(--shadow-medium);
}

.card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header h3 i {
  color: var(--primary-gold);
}

.view-all-btn {
  color: var(--primary-gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  color: var(--dark-gold);
  transform: translateX(2px);
}

.card-content {
  padding: 1.5rem;
}

/* Room Information */
.room-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.room-item:last-child {
  margin-bottom: 0;
}

.room-main {
  flex: 1;
}

.room-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.room-number .number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--charcoal);
}

.room-number .type {
  background: var(--gradient-gold);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.room-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--medium-gray);
}

.detail-item i {
  color: var(--primary-gold);
  width: 12px;
}

.guest-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--charcoal);
}

.guest-count i {
  color: var(--primary-gold);
}

/* Quick Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--light-gray);
  border-radius: 12px;
  text-decoration: none;
  color: var(--charcoal);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-item:hover {
  background: var(--primary-gold);
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--dark-gold);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  background: var(--white);
  color: var(--primary-gold);
}

.service-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-info p {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
}

/* Recent Requests */
.request-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.request-item:last-child {
  margin-bottom: 0;
}

.request-item:hover {
  background: rgba(212, 175, 55, 0.05);
  transform: translateX(2px);
}

.request-info {
  flex: 1;
}

.request-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.request-info p {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin-bottom: 0.5rem;
}

.request-time {
  font-size: 0.8rem;
  color: var(--medium-gray);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.request-status {
  text-align: right;
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-in_progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.request-amount {
  font-weight: 600;
  color: var(--primary-gold);
  font-size: 0.9rem;
}

/* Notifications */
.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  background: var(--light-gray);
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notification-item.unread {
  background: rgba(212, 175, 55, 0.05);
  border-left: 4px solid var(--primary-gold);
}

.notification-item:hover {
  background: rgba(212, 175, 55, 0.08);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--gradient-gold);
  color: var(--white);
  flex-shrink: 0;
}

.notification-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.notification-content p {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.notification-content small {
  font-size: 0.8rem;
  color: var(--medium-gray);
}

/* Pending Invoices */
.invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--red-accent);
}

.invoice-item:last-child {
  margin-bottom: 0;
}

.invoice-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.invoice-info p {
  font-size: 0.9rem;
  color: var(--medium-gray);
  margin-bottom: 0.5rem;
}

.due-date {
  font-size: 0.8rem;
  color: var(--red-accent);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.invoice-amount {
  text-align: right;
}

.amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--medium-gray);
}

.empty-state i {
  font-size: 2rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.empty-state p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--dark-gold);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Quick Actions FAB */
.quick-actions-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.fab-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-heavy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

.fab-button.active {
  transform: rotate(45deg);
}

.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.fab-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--charcoal);
  padding: 0.75rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.fab-item:hover {
  background: var(--primary-gold);
  color: var(--white);
  transform: translateX(-5px);
}

/* Hotel Rules Widget */
.hotel-rules .card-content {
  padding: 1.5rem;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.rule-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-left-color: var(--primary-gold);
}

.rule-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-light);
}

.rule-icon i {
  font-size: 1.2rem;
}

.rule-text {
  flex: 1;
}

.rule-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.25rem;
}

.rule-text p {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.rules-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.rules-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--medium-gray);
}

.rules-footer i {
  margin-right: 0.5rem;
  color: var(--primary-gold);
}

/* Rule item specific colors */
.rule-item .text-danger {
  color: #dc3545 !important;
}

.rule-item .text-warning {
  color: #ffc107 !important;
}

.rule-item .text-info {
  color: #17a2b8 !important;
}

.rule-item .text-primary {
  color: var(--primary-gold) !important;
}

.rule-item .text-success {
  color: #28a745 !important;
}

.rule-item .text-secondary {
  color: var(--medium-gray) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 1.5rem;
  }
  
  .welcome-section {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .welcome-title {
    font-size: 1.8rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .request-item,
  .invoice-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .request-status,
  .invoice-amount {
    text-align: center;
  }
    .quick-actions-fab {
    bottom: 1rem;
    right: 1rem;
  }
  
  /* Hotel Rules Responsive */
  .rule-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .rule-icon {
    width: 35px;
    height: 35px;
  }
  
  .rule-icon i {
    font-size: 1rem;
  }
  
  .rule-text strong {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .weather-widget {
    padding: 0.75rem 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .fab-menu {
    right: -10px;
  }
}
