/* =============================================
   VoidCloth - Admin Stylesheet
   ============================================= */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1a1d23;
    --sidebar-hover: #2d3139;
    --sidebar-active: #ffc107;
    --topbar-height: 60px;
}

body.admin-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.admin-sidebar .sidebar-brand {
    border-bottom: 1px solid #2d3139;
    padding: 15px;
}

.admin-sidebar .nav-link {
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

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

.admin-sidebar .nav-link.active {
    color: #000;
    background-color: var(--sidebar-active);
    font-weight: 600;
}

/* Sidebar section headings */
.admin-sidebar .sidebar-heading small,
.admin-sidebar .sidebar-heading .text-muted {
    color: white !important;
    letter-spacing: 0.08em;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}

/* Scrollbar for sidebar */
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #3d4350;
    border-radius: 2px;
}

/* Page Content */
#page-content-wrapper {
    min-height: 100vh;
    background-color: #f0f2f5;
}

/* Admin Stats Cards */
.admin-stat-card {
    border: none;
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.admin-stat-card .stat-icon {
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    right: 20px;
    bottom: 10px;
}

.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.admin-stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* Content Cards */
.content-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background: white;
}

.content-card .card-header {
    background: white;
    border-bottom: 2px solid #f0f2f5;
    border-radius: 16px 16px 0 0 !important;
    padding: 15px 20px;
    font-weight: 600;
}

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

.admin-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 15px;
}

.admin-table tbody tr {
    transition: background 0.15s;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

.admin-table td {
    vertical-align: middle;
    padding: 12px 15px;
    border-color: #f0f2f5;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Forms */
.admin-form-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
    border-color: #ffc107;
}

/* Topbar */
.navbar.bg-secondary {
    background-color: #fff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.bg-secondary .navbar-text,
.navbar.bg-secondary .text-white {
    color: #212529 !important;
}

.navbar.bg-secondary .btn-outline-light {
    border-color: #dee2e6;
    color: #495057;
}

/* Breadcrumb */
.breadcrumb-item+.breadcrumb-item::before {
    color: #adb5bd;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Avatar */
.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}