/* style.css - Global premium theme stylesheet for MotoShop */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f172a;       /* Deep Slate Blue */
    --secondary: #1e293b;     /* Card background/subtle dark */
    --accent: #06b6d4;        /* Electric Teal accent */
    --accent-hover: #0891b2;  /* Electric Teal hover */
    --success: #10b981;       /* Premium Green */
    --warning: #f59e0b;       /* Premium Orange */
    --danger: #ef4444;        /* Premium Red */
    --info: #3b82f6;          /* Premium Blue */
    --light-bg: #f8fafc;      /* Background slate-light */
    --dark-bg: #090d16;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Sidebar Styling */
#sidebar-wrapper {
    min-height: 100vh;
    width: 260px;
    background-color: var(--primary);
    color: #fff;
    transition: margin-left var(--transition-speed) ease-in-out;
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#sidebar-wrapper .list-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

#sidebar-wrapper .list-group-item {
    background-color: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

#sidebar-wrapper .list-group-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

#sidebar-wrapper .list-group-item.active {
    color: #fff;
    background-color: var(--accent);
    border-left: 4px solid #fff;
}

#sidebar-wrapper .list-group-item i {
    font-size: 1.1rem;
    width: 20px;
}

/* Content Page Layout */
#page-content-wrapper {
    min-width: 100vw;
    transition: margin-left var(--transition-speed) ease-in-out;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
        margin-left: 260px;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -260px;
    }
    #wrapper.toggled #page-content-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    #sidebar-wrapper {
        margin-left: -260px;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}

/* Custom styles for Topbar */
.navbar-top {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Premium Cards */
.card-stats {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.card-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Table styling */
.table-responsive {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    background-color: #fff;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.table thead th {
    background-color: var(--light-bg);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.8);
}

/* Status Badges */
.badge-premium {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.badge-in-stock {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-sold {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-old-stock {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-new-stock {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-suspended {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Form inputs styling */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.btn-accent {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

.btn-dark-slate {
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-dark-slate:hover {
    background-color: #1e293b;
    color: #fff;
}

/* Toast styling */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
