/* ============================================
   Melody's Catering Services
   assets/css/client.css - Client Portal Styles
   Palette matched to the logo (maroon #7A2323 + black + warm neutrals)
   ============================================ */

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #1F1F1F;
  font-size: 14px;
}

a { text-decoration:none; color:inherit; }

/* NAVBAR */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #E5E0D8;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo { display:flex; flex-direction:column; align-items:center; }

.nav-logo-top {
  font-family: Georgia, serif;
  font-size: 8px;
  color: #7A2323;
  letter-spacing: 4px;
}

.nav-logo-main {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #1F1F1F;
  letter-spacing: 2px;
}

.nav-logo-sub {
  font-family: Arial, sans-serif;
  font-size: 6px;
  color: #8A8177;
  letter-spacing: 4px;
}

.navbar-links { display:flex; align-items:center; gap:28px; }

.navbar-links a {
  font-size: 13px;
  color: #8A8177;
  transition: color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active { color: #7A2323; }

.navbar-right { display:flex; align-items:center; gap:14px; }

.nav-notif {
  position: relative;
  width: 34px; height: 34px;
  background: #F5F2EE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #E5E0D8;
}

.nav-notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7A2323;
  border: 1.5px solid #fff;
}

.nav-user { display:flex; align-items:center; gap:8px; cursor:pointer; }

.nav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #F5F2EE;
  border: 1px solid #E5E0D8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #1F1F1F;
}

.nav-username { font-size:13px; color:#1F1F1F; }

.btn-logout-nav {
  font-size: 12px;
  color: #8A8177;
  background: none;
  border: 1px solid #E5E0D8;
  border-radius: 7px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-logout-nav:hover { color:#a32d2d; border-color:#a32d2d; }

/* PAGE WRAPPER */
.page-wrapper { max-width:1100px; margin:0 auto; padding:30px 24px; }

.page-header { margin-bottom:24px; }
.page-title  { font-size:22px; font-weight:600; color:#1F1F1F; }
.page-subtitle { font-size:13px; color:#8A8177; margin-top:4px; }

/* CARDS */
.card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #E5E0D8;
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F1F1F;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0EBE3;
}

/* STAT CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #FAFAFA;
  border-radius: 10px;
  border: 1px solid #E5E0D8;
  padding: 16px 18px;
}

.stat-label { font-size:12px; color:#8A8177; margin-bottom:6px; }
.stat-val   { font-size:28px; font-weight:600; color:#1F1F1F; }

/* FORM ELEMENTS */
.form-group { margin-bottom:18px; }

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #4A4038;
  margin-bottom: 6px;
}

.form-label .required { color:#a32d2d; margin-left:2px; }

.form-control {
  width: 100%;
  height: 42px;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  color: #1F1F1F;
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.form-control:focus { border-color:#7A2323; }

textarea.form-control { height:auto; padding:12px 14px; resize:vertical; line-height:1.6; }
select.form-control   { cursor:pointer; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-hint { font-size:11.5px; color:#8A8177; margin-top:5px; }

/* BUTTONS */
.btn {
  height: 42px;
  border: none;
  border-radius: 8px;
  padding: 0 24px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary { background:#7A2323; color:#fff; }
.btn-primary:hover { background:#5C1A1A; }

.btn-outline { background:#fff; color:#1F1F1F; border:1px solid #D8D0C4; }
.btn-outline:hover { background:#FAFAFA; }

.btn-danger { background:#fcebeb; color:#a32d2d; border:1px solid #f09595; }
.btn-danger:hover { background:#f7c1c1; }

.btn-sm { height:32px; padding:0 14px; font-size:12px; }

/* BADGES */
.badge { display:inline-block; padding:3px 12px; border-radius:20px; font-size:11.5px; font-weight:500; }
.badge-pending   { background:#faeeda; color:#854f0b; }
.badge-confirmed { background:#eaf3de; color:#3b6d11; }
.badge-done      { background:#F0EBE3; color:#4A4038; }
.badge-cancelled { background:#fcebeb; color:#a32d2d; }
.badge-approved  { background:#eaf3de; color:#3b6d11; }
.badge-declined  { background:#fcebeb; color:#a32d2d; }

/* ALERTS */
.alert { border-radius:8px; padding:12px 16px; font-size:13px; margin-bottom:18px; }
.alert-success { background:#eaf3de; color:#3b6d11; border:1px solid #c0dd97; }
.alert-error   { background:#fcebeb; color:#a32d2d; border:1px solid #f09595; }
.alert-info    { background:#F5F2EE; color:#4A4038; border:1px solid #D8D0C4; }

/* BOOKING CARD */
.booking-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #E5E0D8;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.booking-card:hover { border-color:#7A2323; }

.booking-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-event-type { font-size:16px; font-weight:600; color:#1F1F1F; }
.booking-id         { font-size:12px; color:#8A8177; margin-top:2px; }

.booking-meta {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.booking-meta-item .meta-label { font-size:11px; color:#8A8177; margin-bottom:3px; }
.booking-meta-item .meta-val   { font-size:13px; color:#1F1F1F; font-weight:500; }
.booking-cost { font-size:18px; font-weight:600; color:#7A2323; }

.booking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #F0EBE3;
}

/* PACKAGE CARDS */
.package-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:10px; }

.package-card {
  border: 1.5px solid #E5E0D8;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #ffffff;
}

.package-card:hover  { border-color:#7A2323; background:#FAFAFA; }
.package-card.selected { border-color:#7A2323; background:#F5F2EE; }

.package-name  { font-size:14px; font-weight:600; color:#1F1F1F; margin-bottom:4px; }
.package-price { font-size:13px; color:#7A2323; font-weight:500; margin-bottom:8px; }
.package-desc  { font-size:12px; color:#8A8177; line-height:1.6; }

/* EMPTY STATE */
.empty-state       { text-align:center; padding:50px 20px; }
.empty-state-title { font-size:16px; font-weight:500; color:#1F1F1F; margin-bottom:8px; }
.empty-state-desc  { font-size:13px; color:#8A8177; margin-bottom:20px; }

/* NOTIFICATION ITEMS */
.notif-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #F5F2EE;
}
.notif-item:last-child { border-bottom:none; }

.notif-icon { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.notif-icon.unread { background:#F5F2EE; border:1px solid #E5E0D8; }
.notif-icon.read   { background:#FAFAFA; }

.notif-body    { flex:1; min-width:0; }
.notif-message { font-size:13px; color:#1F1F1F; line-height:1.5; }
.notif-message.unread { font-weight:500; }
.notif-time    { font-size:11.5px; color:#8A8177; margin-top:4px; }

/* HERO */
.hero {
  background: #FAFAFA;
  border-bottom: 1px solid #E5E0D8;
  padding: 60px 40px;
  text-align: center;
}

.hero-title    { font-family:Georgia,serif; font-size:36px; font-weight:700; color:#1F1F1F; margin-bottom:12px; letter-spacing:1px; }
.hero-subtitle { font-size:15px; color:#8A8177; margin-bottom:30px; line-height:1.7; }
.hero-gold     { color:#c8a96e; }

.hero-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.btn-gold {
  height: 46px;
  background: #7A2323;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.btn-gold:hover { background:#5C1A1A; }

/* FEATURES */
.features { padding:50px 40px; max-width:1100px; margin:0 auto; }

.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:24px; }

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #E5E0D8;
  padding: 24px;
  text-align: center;
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #F5F2EE;
  border: 1px solid #E5E0D8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.feature-title { font-size:15px; font-weight:600; color:#1F1F1F; margin-bottom:8px; }
.feature-desc  { font-size:13px; color:#8A8177; line-height:1.7; }

/* RESPONSIVE */
@media (max-width:900px) {
  .resp-2col { grid-template-columns:1fr !important; }
}

@media (max-width:768px) {
  .navbar { padding:0 16px; }
  .navbar-links { display:none; }
  .page-wrapper { padding:20px 16px; }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .form-row  { grid-template-columns:1fr; }
  .package-grid { grid-template-columns:1fr; }
  .booking-meta { grid-template-columns:repeat(2,1fr); }
  .features-grid { grid-template-columns:1fr; }
  .hero { padding:40px 20px; }
  .hero-title { font-size:26px; }
  .food-options { grid-template-columns:1fr !important; }
  .venue-combo { flex-direction:column; }
  .venue-combo .venue-divider { width:100% !important; height:1px; }
  .venue-combo input, .venue-combo select { width:100% !important; }
}

@media (max-width:480px) {
  .stat-grid    { grid-template-columns:1fr 1fr; }
  .booking-meta { grid-template-columns:1fr; }
  .cal-day-name { font-size:9px; }
  .cal-cell { min-height:30px; font-size:10px; }
}