@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary: #e11d48;
    --primary-light: #fff1f2;
    --primary-hover: #be123c;
    --primary-dark: #9f1239;
    --bg-main: #fcfcfd;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #f1f5f9;
    --radius: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(225, 29, 72, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.sidebar-profile {
    padding: 24px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 32px;
    text-align: center;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.sidebar-profile img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link [data-lucide] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

.nav-link.active {
    background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3);
}

.nav-link:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary);
}

/* Main Content */
.main-content {
    padding: 0;
    min-height: 100vh;
}

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

.search-container {
    position: relative;
    width: 320px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.search-container [data-lucide] {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card {
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* Tables */
.table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 16px;
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e0b0e 0%, #e11d48 100%);
    padding: 20px;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

/* Product Cards */
.product-card:hover {
    transform: translateY(-8px);
}

.extra-small {
    font-size: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        margin: -24px -24px 24px -24px !important;
        padding: 15px !important;
    }
    
    .display-4 {
        font-size: 2.2rem !important;
    }
    
    .p-5 {
        padding: 2rem !important;
    }

    .horizontal-product-card {
        padding: 20px !important;
    }

    .horizontal-product-card .row {
        text-align: center;
    }

    .horizontal-product-card .col-auto, 
    .horizontal-product-card .col {
        width: 100%;
        border: none !important;
        padding: 10px 0 !important;
    }

    .horizontal-product-card img {
        width: 100px;
        height: 100px;
        margin: 0 auto 10px auto;
    }
}

.category-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-nav::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.category-nav .btn {
    flex: 0 0 auto;
}

/* Fix global button hover background issues */
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-light:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.btn-outline-primary:hover, 
.btn-outline-danger:hover, 
.btn-outline-warning:hover, 
.btn-outline-success:hover, 
.btn-outline-info:hover {
    color: #fff !important;
}

