/* Telegram Shop Admin - Bootstrap 5 responsive */
:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
    --sidebar-active: #3b82f6;
    --header-bg: #0f172a;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --body-bg: #f1f5f9;
}

.admin-body {
    background-color: var(--body-bg);
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.2s, margin 0.2s;
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: var(--sidebar-active);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

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

.sidebar-nav .nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-left: 3px solid var(--sidebar-active);
}

.sidebar-nav .nav-link i {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 0;
}

.sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #f87171 !important;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-navbar {
    background: var(--header-bg);
    color: #fff;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 0.25rem;
}

.navbar-title {
    font-weight: 600;
    font-size: 1.15rem;
}

.navbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.content-area {
    padding: 1.5rem;
    flex: 1;
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
}

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

.btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.btn-success:hover { background: #16a34a; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: #eab308; border-color: #eab308; }
.btn-warning:hover { background: #ca8a04; border-color: #ca8a04; }

.stat-card {
    border-radius: 0.5rem;
    padding: 1.25rem;
    color: #fff;
}

.stat-card.primary { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-card.warning { background: linear-gradient(135deg, #eab308, #ca8a04); }
.stat-card.info { background: linear-gradient(135deg, #0ea5e9, #0284c7); }

.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-card .stat-label { opacity: 0.9; font-size: 0.9rem; }

.table th { font-weight: 600; color: #475569; }
.badge.bg-pending { background: #eab308; }
.badge.bg-approved { background: #22c55e; }
.badge.bg-rejected { background: #ef4444; }

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.show {
        transform: translateX(0);
        margin-left: 0;
    }
    .main-content { margin-left: 0; }
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.alert { border: none; border-radius: 0.5rem; }
