/* BeautyCommerce Custom Styles */

:root {
    --primary-color: #8B4A6B;
    --secondary-color: #D4A574;
    --accent-color: #F5E6D3;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --text-muted-lg: white;

    --bg-light: #F8F9FA;
    --border-color: #E9ECEF;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.75rem !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav {
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Goal: Ensure all navigation text appears white by explicitly targeting anchor elements,
   since Bootstrap may override inherited color from .navbar-nav. */

/* Existing block (unchanged) */
/*.navbar-nav-white {
  transition: color 0.3s ease;
  background-color: black;
  color: white !important;
}*/

  /* Added: force white text for nav links (anchors do not always inherit parent color). */
  /*.navbar-nav-white .nav-link,
  .navbar-nav-white .dropdown-item {
    color: #fff !important;
  }*/

    /* Hover state (already present earlier in file, keep for color change on hover).
   If needed, ensure it stays after the new rule to override the white color. */
  /*.navbar-nav-white .nav-link:hover,
  .navbar-nav-white .dropdown-item:hover {
    color: var(--primary-color) !important;
  }*/

.link {
  color: white !important;
}

a.link {
  color: white !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.min-vh-70 {
    min-height: 70vh !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 74, 107, 0.15) !important;
}

.product-overlay {
    background: rgba(139, 74, 107, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Brand Cards */
.brand-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #7A3F5F;
    border-color: #7A3F5F;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 74, 107, 0.25);
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid var(--border-color);
}

div.col-12.col-lg-4.col-md-6 {
  padding: 0px 0px !important
}
/* Statistics Cards */
.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 74, 107, 0.1);
}

/* Dashboard Styles */
.dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(139, 74, 107, 0.1);
}

/* Sidebar Navigation */
.nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(139, 74, 107, 0.05);
    color: var(--primary-color) !important;
}

.nav-link.active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Avatar */
.avatar {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.table-hover tbody tr:hover {
    background-color: rgba(139, 74, 107, 0.05);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

footer h5, footer h6 {
    color: #ffffff !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Social Links */
.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 74, 107, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7A3F5F;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

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

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Price Display */
.price {
    font-weight: 600;
    color: var(--primary-color);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9em;
}

.price-discount {
    color: #dc3545;
    font-weight: 600;
}

/* Rating Stars */
.rating .fas.fa-star {
    color: #ffc107;
}

.rating .far.fa-star {
    color: #dee2e6;
}

/* Shopping Cart Styles */
.cart-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(139, 74, 107, 0.1);
}

.cart-summary {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

/* Search Styles */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: var(--bg-light);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Filter Styles */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

  .pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
  }

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: white !important;
  border-color: var(--primary-color);
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-radius: 0 0 12px 12px;
    border-top: 1px solid var(--border-color);
}

/* Toast Notifications */
.toast {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.toast-header {
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid var(--border-color);
}

/* Profile Styles */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 1rem;
}

/* Dashboard Cards */
.dashboard-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.btn-mac9 {
  background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
  border: 1px solid #999;
  border-radius: 3px;
  padding: 4px 12px;
  font-family: "Chicago", "Charcoal", sans-serif;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.3);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

  .btn-mac9:hover {
    background: linear-gradient(to bottom, #f5f5f5 0%, #d5d5d5 100%);
  }

  .btn-mac9:active {
    background: linear-gradient(to bottom, #d0d0d0 0%, #e8e8e8 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
  }

.btn-mac9-text {
  display: inline-block;
  padding: 0 4px;
}

/* Order Status Badges */
.badge-draft {
  background-color: #6c757d;
}
.badge-submitted { background-color: #0d6efd; }
.badge-approved { background-color: #ffc107; }
.badge-shipped { background-color: #0dcaf0; }
.badge-completed { background-color: #198754; }
.badge-cancelled { background-color: #dc3545; }

/* Responsive Tables */
@media (max-width: 768px) {
  .table-responsive {
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }
    
    .table-responsive .table {
        margin-bottom: 0;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, .nav {
        display: none !important;
    }
    
    .container {
        max-width: none;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000;
    }
}