/* MoraBookAI Aesthetics-Friendly Admin Styles */
/* Soft, elegant, beauty clinic inspired */

:root {
  --cream: #faf7f5;
  --soft-pink: #f5e6e0;
  --blush: #e8d5cd;
  --rose-gold: #d4a574;
  --sage: #a8b5a0;
  --charcoal: #4a4a4a;
  --warm-gray: #7a6b5d;
  --white: #ffffff;
  --shadow: rgba(74, 74, 74, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
}

/* Elegant Header */
.header {
  background: linear-gradient(135deg, var(--soft-pink) 0%, var(--blush) 100%);
  color: var(--charcoal);
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--rose-gold);
}

.header h1 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  font-family: 'Playfair Display', Georgia, serif;
}

.header h1::before {
  content: '✨ ';
}

.business-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.business-selector select {
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid var(--rose-gold);
  background: var(--white);
  color: var(--charcoal);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.business-selector select:hover {
  box-shadow: 0 4px 15px var(--shadow);
}

/* Soft Navigation */
.nav {
  display: flex;
  gap: 8px;
  background: var(--white);
  padding: 15px 40px;
  box-shadow: 0 2px 20px var(--shadow);
}

.nav button {
  background: transparent;
  border: none;
  color: var(--warm-gray);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav button:hover {
  color: var(--rose-gold);
  background: var(--soft-pink);
}

.nav button.active {
  background: linear-gradient(135deg, var(--rose-gold), #c9956d);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

/* Elegant Container */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px;
}

/* Beautiful Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 30px var(--shadow);
  border: 1px solid rgba(212, 165, 116, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-gold), var(--sage));
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(74, 74, 74, 0.12);
}

.stat-card h3 {
  color: var(--warm-gray);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 500;
}

.stat-card .value {
  font-size: 36px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  font-family: 'Playfair Display', Georgia, serif;
}

.stat-card .change {
  font-size: 13px;
  color: var(--sage);
  font-weight: 500;
}

.stat-card .change.negative {
  color: #c97b7b;
}

/* Calendar Section */
.calendar-section {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px var(--shadow);
  margin-bottom: 30px;
}

.calendar-section h2 {
  color: var(--charcoal);
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 500;
  font-family: 'Playfair Display', Georgia, serif;
}

/* Elegant Appointments */
.appointments-section {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px var(--shadow);
  margin-bottom: 30px;
}

.appointments-section h2 {
  color: var(--charcoal);
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 500;
  font-family: 'Playfair Display', Georgia, serif;
}

.appointment-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
  transition: background 0.2s ease;
}

.appointment-item:hover {
  background: var(--soft-pink);
  border-radius: 12px;
}

.appointment-time {
  min-width: 80px;
  text-align: center;
}

.appointment-time .time {
  font-size: 18px;
  font-weight: 600;
  color: var(--charcoal);
}

.appointment-time .duration {
  font-size: 12px;
  color: var(--warm-gray);
}

.appointment-info h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.appointment-info p {
  font-size: 13px;
  color: var(--warm-gray);
}

/* Soft Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-scheduled {
  background: linear-gradient(135deg, #e8f4f0, #d4e8e2);
  color: #4a7c6f;
}

.status-completed {
  background: linear-gradient(135deg, #f0e8f4, #e2d4e8);
  color: #7c4a7c;
}

.status-cancelled {
  background: linear-gradient(135deg, #f4e8e8, #e8d4d4);
  color: #7c4a4a;
}

/* Elegant Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-gold), #c9956d);
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--soft-pink);
  color: var(--charcoal);
}

.btn-secondary:hover {
  background: var(--blush);
}

/* Waitlist Section */
.waitlist-section {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px var(--shadow);
}

.waitlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
}

.waitlist-item:hover {
  background: var(--soft-pink);
  border-radius: 12px;
}

/* Appointment Layout Fixes */
.appointment-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
  transition: background 0.2s ease;
  gap: 20px;
}

.appointment-service {
  flex: 1;
  font-size: 14px;
  color: var(--rose-gold);
  font-weight: 500;
  text-align: center;
}

.appointment-status {
  min-width: 100px;
  text-align: center;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-scheduled {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.status-completed {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.status-cancelled {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
}

.status-deposit-paid {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}

/* Compact action buttons */
.appointment-item .btn-success,
.appointment-item .btn-danger {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appointment-item .btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.appointment-item .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* Filters Styling */
.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filters select,
.filters input[type="date"] {
  padding: 12px 16px;
  border: 2px solid #e8ddd6;
  border-radius: 12px;
  font-size: 14px;
  background: white;
  color: #4a4a4a;
  min-width: 150px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filters select:hover,
.filters input[type="date"]:hover {
  border-color: #d4a574;
}

.filters select:focus,
.filters input[type="date"]:focus {
  outline: none;
  border-color: #c9a086;
  box-shadow: 0 0 0 3px rgba(201, 160, 134, 0.1);
}

/* Modal Styling */
.modal {
  background: rgba(74, 74, 74, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, var(--soft-pink), var(--blush));
  border-bottom: 2px solid var(--rose-gold);
}

/* Section Headers */
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--charcoal);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
