/* 
 * EMAG.PK — Modern B2B Dropshipping Aesthetic
 * Design Principles: Soft Shadows, Rounded Corners, Inter Font, Clean Hierarchy
 */

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

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-light: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --border-radius: 0.75rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0f172a;
}

/* Layout & Containers */
.container {
    max-width: 1200px;
}

/* Sidebar Styling (Admin/Seller/Store Dashboards) */
.sidebar {
    background: #0f172a;
    min-height: 100vh;
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.75rem 1.25rem;
    margin: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #f8fafc;
    background: rgba(255,255,255,0.05);
}

.sidebar .nav-link.active {
    color: #fff;
    background: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Card Aesthetic */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
}

.table tbody td {
    padding: 1rem 1.25rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

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

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

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: 0.375rem;
}

/* Products */
.product-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .product-thumb {
    transform: scale(1.05);
}

/* Forms */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Navbar (Guest) */
.navbar {
    padding: 1rem 0;
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.navbar-dark .navbar-brand {
    color: #0f172a !important;
}

.navbar-dark .nav-link {
    color: #475569 !important;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    .card-body {
        padding: 1rem;
    }
}
