/* =========================================================================
   CERTIFICATE EXPIRATION MANAGER DESIGN SYSTEM
   Theme: dark-first
   ========================================================================= */

:root {
    --bg-color: #0F1117;
    --card-color: #1A1D29;
    --border-color: #2A2F42;
    --text-color: #F5F5F5;
    --text-muted: #D1D5DB;
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --success-color: #22C55E;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --expired-color: #9CA3AF;
    --sidebar-width: 260px;
    --transition-speed: 0.25s;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

svg {
    stroke-linecap: round;
    stroke-linejoin: round;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a415a;
}

/* Helpers */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.bold {
    font-weight: 700;
}

/* =========================================================================
   SPINNER & LOADER
   ========================================================================= */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-speed) ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================================================
   LOGIN SCREEN
   ========================================================================= */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1e2235 0%, var(--bg-color) 100%);
    z-index: 999;
}

.login-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.4s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    margin-bottom: 16px;
}

.login-logo svg {
    width: 32px;
    height: 32px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.oidc-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.oidc-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.oidc-divider span {
    position: relative;
    z-index: 2;
    background-color: var(--card-color);
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
}

/* =========================================================================
   LAYOUT STRUCTURE
   ========================================================================= */
.main-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-speed) ease;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
}

.sidebar-logo svg {
    width: 22px;
    height: 22px;
}

.sidebar-title h3 {
    font-size: 16px;
    font-weight: 700;
}

.sidebar-title span {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 4px;
    color: var(--text-muted);
    transition: all var(--transition-speed) ease;
}

.sidebar-nav li svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-nav li:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
}

.sidebar-nav li:hover svg {
    transform: scale(1.05);
}

.sidebar-nav li.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar-user {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.user-info {
    flex: 1;
    overflow: hidden;
}

.user-info h4 {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

/* Content Area */
.content-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    min-height: 100vh;
}

.content-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-view.active {
    display: block;
}

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

.view-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.view-header .header-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.date-now {
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================================================
   WIDGETS & SUMMARY
   ========================================================================= */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.widget-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.widget-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.widget-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
}

.widget-icon svg {
    width: 24px;
    height: 24px;
}

.widget-icon.total { background-color: rgba(59, 130, 246, 0.1); color: var(--primary-color); }
.widget-icon.success { background-color: rgba(34, 197, 94, 0.1); color: var(--success-color); }
.widget-icon.warning { background-color: rgba(245, 158, 11, 0.1); color: var(--warning-color); }
.widget-icon.danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger-color); }
.widget-icon.expired { background-color: rgba(156, 163, 175, 0.1); color: var(--expired-color); }

.widget-content h3 {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.widget-content h2 {
    font-size: 24px;
    font-weight: 700;
}

/* Summary Alerts */
.summary-alerts-container {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.summary-alerts-container h3 {
    color: var(--danger-color);
    font-size: 16px;
    margin-bottom: 12px;
}

.summary-alerts-container ul {
    list-style-type: none;
    padding-left: 0;
}

.summary-alerts-container li {
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.summary-alerts-container li .badge {
    margin-left: 8px;
}

.summary-alerts-container li:last-child {
    border-bottom: none;
}

.summary-alerts-container li::before {
    content: "•";
    color: var(--danger-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 0.5em;
}

/* =========================================================================
   CHARTS
   ========================================================================= */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.chart-container {
    position: relative;
    height: 220px;
    width: 100%;
}

/* =========================================================================
   TOOLBAR & FILTER BAR
   ========================================================================= */
.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.search-input {
    position: relative;
    flex: 1;
}

.search-input svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-input input[type="text"] {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    outline: none;
    transition: all var(--transition-speed);
}

.search-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.filter-group {
    display: flex;
    gap: 10px;
}

select {
    padding: 12px 24px 12px 16px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%23D1D5DB' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

select:focus {
    border-color: var(--primary-color);
}

/* =========================================================================
   TABLES
   ========================================================================= */
.table-container {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th, .data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: rgba(255, 255, 255, 0.01);
    font-weight: 600;
    color: var(--text-muted);
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge.success { background-color: rgba(34, 197, 94, 0.12); color: var(--success-color); }
.badge.warning { background-color: rgba(245, 158, 11, 0.12); color: var(--warning-color); }
.badge.danger { background-color: rgba(239, 68, 68, 0.12); color: var(--danger-color); }
.badge.expired { background-color: rgba(156, 163, 175, 0.12); color: var(--expired-color); }

.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* Table Row Owners layout */
.table-owners {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    font-size: 13px;
}

/* Action buttons */
.btn-group-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.btn-icon.delete:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

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

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* =========================================================================
   FORMS & INPUTS
   ========================================================================= */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    outline: none;
    transition: all var(--transition-speed);
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.04);
}

.input-helper {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Checkbox design */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    max-height: 120px;
    overflow-y: auto;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* =========================================================================
   TAGS & OWNERS LAYOUT
   ========================================================================= */
.tags-owners-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.crud-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

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

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* =========================================================================
   SETTINGS STYLING
   ========================================================================= */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.settings-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.settings-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.btn-group {
    display: flex;
    gap: 10px;
}

/* =========================================================================
   MODALS LAYOUT
   ========================================================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-sm { max-width: 400px; }
.modal-lg { max-width: 750px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* Details modal layout */
.details-body {
    display: flex;
    gap: 30px;
}

.details-main {
    flex: 2;
}

.details-side {
    flex: 1;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.details-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.info-block {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.info-block .lbl {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-block .val {
    font-size: 15px;
    font-weight: 600;
}

.details-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.details-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.details-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 35%;
}

.side-block {
    margin-bottom: 20px;
}

.side-block h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.side-block p {
    font-size: 13px;
    margin-bottom: 6px;
}

.tags-list, .owners-list {
    margin-top: 6px;
}

.owners-list div {
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.mfa-setup-body {
    text-align: center;
}

.mfa-qr-container {
    background-color: white;
    padding: 16px;
    border-radius: 10px;
    display: inline-block;
    margin: 16px 0;
}

.mfa-secret-display {
    color: #0F1117;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2px;
}

.mfa-secret-label {
    font-size: 12px;
    margin-bottom: 20px;
}

/* =========================================================================
   TOAST NOTIFICATIONS
   ========================================================================= */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    max-width: 450px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.3s ease;
}

.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--danger-color); }
.toast.warning { border-left-color: var(--warning-color); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

/* =========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0;
        padding: 20px;
    }
    
    .toolbar {
        flex-direction: column;
    }
}
