/* Luxurious and Feminine CSS theme for RentDresses */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Jost:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Color Variables */
:root {
  --primary-burgundy: #6b1d2f;
  --secondary-burgundy: #4a1525;
  --luxury-gold: #c5a059;
  --metallic-gold: #d4af37;
  --champagne-blush: #fdf8f5;
  --silk-pink: #f2d1c9;
  --soft-rose: #e8bcb0;
  --bg-cream: #faf5f0;
  --text-dark: #2c1e21;
  --text-light: #7c6c70;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(197, 160, 89, 0.25);
  --soft-shadow: 0 10px 30px rgba(74, 21, 37, 0.05);
  --luxury-shadow: 0 15px 40px rgba(197, 160, 89, 0.15);
}

/* Global Overrides */
body {
  font-family: 'Jost', sans-serif;
  color: var(--text-dark);
  background-color: var(--champagne-blush);
  letter-spacing: 0.03em;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .luxury-heading {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600;
  color: var(--secondary-burgundy);
  letter-spacing: 0.05em;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--champagne-blush);
}
::-webkit-scrollbar-thumb {
  background: var(--luxury-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-burgundy);
}

/* Header customization */
.header_section {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-brand span {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 0.1em;
  color: var(--secondary-burgundy) !important;
  text-transform: uppercase;
}

.custom_nav-container .navbar-nav .nav-item .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  letter-spacing: 0.15em;
  font-size: 13px;
  transition: all 0.3s ease;
  position: relative;
}

.custom_nav-container .navbar-nav .nav-item .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: var(--luxury-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.custom_nav-container .navbar-nav .nav-item:hover .nav-link::after,
.custom_nav-container .navbar-nav .nav-item.active .nav-link::after {
  width: 60%;
}

.custom_nav-container .navbar-nav .nav-item:hover .nav-link,
.custom_nav-container .navbar-nav .nav-item.active .nav-link {
  color: var(--luxury-gold) !important;
}

/* Hero & Slider Customizations */
.hero_area {
  background: linear-gradient(135deg, #fdf8f5 0%, #fae6da 100%);
  min-height: 80vh !important;
}

.slider_section .detail-box h1 {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--secondary-burgundy);
}

.slider_section .detail-box h1 span {
  color: var(--luxury-gold);
  font-style: italic;
  font-weight: 400;
}

.btn1 {
  background-color: var(--primary-burgundy) !important;
  border: 1px solid var(--primary-burgundy) !important;
  color: var(--white) !important;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 35px !important;
  border-radius: 0 !important;
  transition: all 0.4s ease !important;
}

.btn1:hover {
  background-color: transparent !important;
  color: var(--primary-burgundy) !important;
  border-color: var(--primary-burgundy) !important;
}

.btn-gold {
  background-color: var(--luxury-gold) !important;
  border: 1px solid var(--luxury-gold) !important;
  color: var(--white) !important;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 35px !important;
  border-radius: 0 !important;
  transition: all 0.4s ease !important;
}

.btn-gold:hover {
  background-color: transparent !important;
  color: var(--luxury-gold) !important;
  border-color: var(--luxury-gold) !important;
}

/* Product Section overrides */
.heading_container h2 {
  font-size: 3.8rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.05em;
  color: var(--secondary-burgundy);
  text-transform: capitalize;
}

.heading_container h2::after {
  background: var(--luxury-gold) !important;
  width: 60px !important;
  height: 2px !important;
  margin: 15px auto !important;
}

.product_section .box {
  background-color: var(--white);
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: var(--soft-shadow);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}

.product_section .box:hover {
  transform: translateY(-8px);
  box-shadow: var(--luxury-shadow);
  border-color: var(--luxury-gold);
}

.product_section .box .img-box {
  background-color: #fdfbfa !important;
  padding: 30px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 320px;
  overflow: hidden;
}

.product_section .box .img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: all 0.6s ease;
}

.product_section .box:hover .img-box img {
  transform: scale(1.08);
}

.product_section .box .detail-box {
  padding: 20px;
  text-align: center;
  background: var(--white);
  position: relative;
  z-index: 10;
}

.product_section .box .detail-box h5 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--secondary-burgundy);
}

.price-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 8px;
}

.price-tag {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.price-tag span {
  font-size: 18px;
  font-weight: 600;
  color: var(--luxury-gold);
}

.price-divider {
  color: rgba(197, 160, 89, 0.4);
}

.option_container {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(74, 21, 37, 0.85);
  backdrop-filter: blur(4px);
  z-index: 99;
  transition: all 0.4s ease;
  padding: 20px;
  opacity: 0;
}

.product_section .box:hover .option_container {
  top: 0;
  opacity: 1;
}

.option_container .options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80%;
}

.option_container .btn-view {
  background-color: var(--luxury-gold);
  color: var(--white);
  border: 1px solid var(--luxury-gold);
}

.option_container .btn-view:hover {
  background-color: transparent;
  color: var(--luxury-gold);
  border-color: var(--luxury-gold);
}

/* Elegant Calendar Styling */
.luxury-calendar {
  background: var(--white);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 4px;
  box-shadow: var(--soft-shadow);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header h5 {
  font-size: 22px;
  margin: 0;
  color: var(--secondary-burgundy);
}

.calendar-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--luxury-gold);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.calendar-btn:hover {
  background: var(--luxury-gold);
  color: var(--white);
  border-color: var(--luxury-gold);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.day-name {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
  background-color: var(--white);
}

.calendar-day:hover:not(.empty):not(.disabled):not(.booked) {
  background-color: var(--silk-pink);
  color: var(--secondary-burgundy);
}

.calendar-day.empty {
  cursor: default;
  background: transparent;
}

.calendar-day.disabled {
  color: #d0c8c9;
  cursor: not-allowed;
  background-color: #faf8f8;
}

.calendar-day.booked {
  color: #a89496;
  background: repeating-linear-gradient(
    45deg,
    #fff3f3,
    #fff3f3 4px,
    #ffe8e8 4px,
    #ffe8e8 8px
  );
  cursor: not-allowed;
  border: 1px solid rgba(220, 53, 69, 0.15);
}

.calendar-day.booked::after {
  content: 'Booked';
  font-size: 8px;
  color: #dc3545;
  position: absolute;
  bottom: 2px;
  font-weight: 500;
  transform: scale(0.9);
}

.calendar-day.selected {
  background-color: var(--primary-burgundy) !important;
  color: var(--white) !important;
  font-weight: bold;
}

.calendar-day.in-range {
  background-color: var(--silk-pink) !important;
  color: var(--secondary-burgundy) !important;
}

/* Elegant Dress Details Modal styling */
.luxury-modal-content {
  background: var(--bg-cream);
  border: 1px solid var(--luxury-gold);
  border-radius: 4px;
  box-shadow: var(--luxury-shadow);
  overflow: hidden;
}

.luxury-modal-header {
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.luxury-modal-body {
  padding: 30px;
}

.dress-gallery {
  background: #ffffff;
  border: 1px solid rgba(197, 160, 89, 0.1);
  padding: 20px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.dress-gallery img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
}

.dress-details-info h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.dress-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  background-color: var(--silk-pink);
  color: var(--secondary-burgundy);
  border-radius: 0;
  margin-bottom: 20px;
}

.meta-info-item {
  margin-bottom: 10px;
  font-size: 15px;
}

.meta-info-item strong {
  color: var(--secondary-burgundy);
}

.booking-summary-box {
  background-color: var(--white);
  border: 1px solid var(--glass-border);
  padding: 20px;
  margin-top: 20px;
}

.booking-summary-box h6 {
  font-weight: bold;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* Social link buttons */
.social-link {
  color: var(--secondary-burgundy) !important;
  border: 1px solid var(--border-gold) !important;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: var(--white) !important;
}

.social-link:hover {
  background-color: var(--primary-burgundy) !important;
  color: var(--white) !important;
  border-color: var(--luxury-gold) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(107, 29, 47, 0.15);
}

/* Cart & Sidebar styles */
.luxury-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: var(--bg-cream);
  box-shadow: -10px 0 30px rgba(74, 21, 37, 0.15);
  z-index: 1050;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.luxury-drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(74, 21, 37, 0.4);
  backdrop-filter: blur(3px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

.drawer-item {
  display: flex;
  gap: 15px;
  background: var(--white);
  padding: 15px;
  border: 1px solid rgba(197, 160, 89, 0.1);
  margin-bottom: 15px;
  border-radius: 4px;
}

.drawer-item img {
  width: 70px;
  height: 90px;
  object-fit: contain;
  background-color: #fdfbfa;
}

.drawer-item-details {
  flex-grow: 1;
}

.drawer-item-details h6 {
  margin: 0 0 5px 0;
  font-weight: 600;
  font-size: 16px;
}

.drawer-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

/* Toast Notifications */
.luxury-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary-burgundy);
  color: var(--white);
  padding: 15px 25px;
  box-shadow: var(--luxury-shadow);
  border-left: 4px solid var(--luxury-gold);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Admin Dashboard CSS */
.admin-card {
  background: var(--white);
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow: var(--soft-shadow);
  padding: 25px;
  border-radius: 4px;
  margin-bottom: 30px;
}

.admin-stat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-cream) 100%);
  border: 1px solid rgba(197, 160, 89, 0.15);
  padding: 20px 25px;
  border-radius: 4px;
}

.admin-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary-burgundy);
  margin-top: 5px;
}

.admin-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.1em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background-color: var(--bg-cream);
  color: var(--secondary-burgundy);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 15px;
  border-bottom: 2px solid var(--glass-border);
}

.admin-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1);
  font-size: 14px;
}

.admin-table tr:hover td {
  background-color: #faf6f3;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--secondary-burgundy);
  margin-bottom: 8px;
  display: block;
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--glass-border);
  background: var(--white);
  border-radius: 0;
  font-family: 'Jost', sans-serif;
  color: var(--text-dark);
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  outline: none;
  border-color: var(--primary-burgundy);
  box-shadow: 0 0 5px rgba(107, 29, 47, 0.1);
}

.badge-rent {
  background-color: #e3f2fd;
  color: #0d47a1;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
}

.badge-buy {
  background-color: #e8f5e9;
  color: #1b5e20;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
}

.badge-status-confirmed {
  background-color: #fff3e0;
  color: #e65100;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
}

.badge-status-completed {
  background-color: #e8f5e9;
  color: #1b5e20;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
}

.badge-status-cancelled {
  background-color: #ffebee;
  color: #c62828;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: bold;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
}

.admin-tab-btn.active {
  color: var(--secondary-burgundy);
  font-weight: 700;
  border-bottom: 2px solid var(--primary-burgundy);
}

/* Occupancy indicator dot style */
.occupancy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.occupancy-dot.booked {
  background-color: #dc3545;
}
.occupancy-dot.available {
  background-color: #28a745;
}

/* ==========================================================================
   Responsive & Mobile Compatibility System (DESIGN.md Section 9)
   ========================================================================== */

/* Tablet Screens (max-width: 991px) */
@media (max-width: 991px) {
  .slider_section .detail-box h1 {
    font-size: 3rem !important;
  }
  
  .heading_container h2 {
    font-size: 2.8rem !important;
  }
  
  .luxury-drawer {
    width: 380px;
    right: -380px;
  }
  
  .dress-gallery {
    min-height: 320px;
  }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
  .slider_section .detail-box h1 {
    font-size: 2.2rem !important;
  }
  
  .heading_container h2 {
    font-size: 2.2rem !important;
  }
  
  .layout_padding {
    padding: 45px 0;
  }
  
  /* Make drawer slide full screen on mobile */
  .luxury-drawer {
    width: 100vw;
    right: -100vw;
    padding: 20px;
  }
  
  .drawer-item {
    padding: 10px;
    gap: 10px;
  }
  
  .drawer-item img {
    width: 50px;
    height: 70px;
  }
  
  /* Calendar adjustments for mobile screens */
  .luxury-calendar {
    padding: 10px;
  }
  
  .calendar-header h5 {
    font-size: 18px;
  }
  
  .calendar-grid {
    gap: 4px;
  }
  
  .day-name {
    font-size: 10px;
    margin-bottom: 5px;
  }
  
  .calendar-day {
    font-size: 11px;
    border-radius: 2px;
  }
  
  .calendar-day.booked::after {
    font-size: 7px;
    transform: scale(0.85);
    bottom: 1px;
  }
  
  /* Dress gallery and details */
  .dress-gallery {
    min-height: 250px;
    padding: 10px;
    margin-bottom: 15px;
  }
  
  .dress-gallery img {
    max-height: 280px;
  }
  
  .dress-details-info h2 {
    font-size: 2rem;
  }
  
  .luxury-modal-body {
    padding: 15px;
  }
  
  .luxury-modal-header {
    padding: 15px 20px;
  }
  
  /* New Arrivals Mobile Redesign (Prevents Cropping and Overlap) */
  .arrival_section .box {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 15px !important;
    background-color: var(--bg-cream) !important;
    border: 1px solid var(--border-gold) !important;
    min-height: auto !important;
  }

  .arrival_section .arrival_bg_box {
    position: relative !important;
    width: 100% !important;
    height: 280px !important;
    margin-bottom: 20px !important;
    top: auto !important;
    left: auto !important;
    z-index: 2 !important;
  }

  .arrival_section .arrival_bg_box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .arrival_section .row {
    margin: 0 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 3 !important;
  }

  .arrival_section .col-md-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .arrival_section .heading_container {
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }

  .arrival_section .heading_container h2 {
    text-align: center !important;
    width: 100% !important;
    font-size: 1.8rem !important; /* Smaller size to prevent overflow */
  }
  
  /* Touch target sizes */
  .btn1, .btn-gold, .calendar-btn {
    min-height: 44px;
  }
  
  /* Custom checkboxes spacing on mobile */
  .custom-checkbox {
    margin-bottom: 10px;
  }
  
  /* Admin tabs layout on mobile */
  .admin-tabs {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .admin-tab-btn {
    padding: 8px 12px;
    font-size: 13px;
    flex-grow: 1;
    text-align: center;
  }
  
  .admin-stat-card {
    padding: 15px;
  }
  
  .admin-stat-value {
    font-size: 26px;
  }
}

/* Extra Small Mobile Screen (max-width: 480px) */
@media (max-width: 480px) {
  .navbar-brand span {
    font-size: 26px;
  }
  
  .slider_section .detail-box h1 {
    font-size: 1.8rem !important;
  }
  
  /* Table wrapping rules to prevent overflow */
  .table-responsive {
    font-size: 12px;
  }
  
  .admin-table th, .admin-table td {
    padding: 8px;
  }
}

/* Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
