﻿/* ============================================
   MarketPro - Ana CSS Faylı
   ============================================ */

/* ============== RESET & BASE ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
:root {
    /* Rənglər */
    --primary: #166534;
    --primary-hover: #14532d;
    --primary-light: #dcfce7;
    --secondary: #ea580c;
    --secondary-hover: #c2410c;
    --secondary-light: #ffedd5;
    --bg-main: #f8fafc;
    --bg-paper: #ffffff;
    --bg-subtle: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-subtle: #f1f5f9;
    --success: #16a34a;
    --warning: #eab308;
    --error: #dc2626;
    --info: #0284c7;
    /* Kölgələr */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    /* Sidebar */
    --sidebar-width: 260px;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn:active {
        transform: scale(0.98);
    }

.btn-primary {
    background-color: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
    }

.btn-secondary {
    background-color: var(--bg-paper);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        background-color: var(--bg-subtle);
    }

.btn-danger {
    background-color: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

    .btn-danger:hover {
        background-color: #fee2e2;
    }

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

/* ============== FORMS ============== */
.form-group {
    margin-bottom: 1.25rem;
}

    .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 0.5rem;
    }

.input-wrapper {
    position: relative;
}

    .input-wrapper i {
        position: absolute;
        left: 0.875rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
    }

    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding-left: 2.75rem;
    }

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--bg-paper);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
    }

    input::placeholder {
        color: var(--text-muted);
    }

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .checkbox-wrapper input[type="checkbox"] {
        width: 1.125rem;
        height: 1.125rem;
        accent-color: var(--primary);
    }

    .checkbox-wrapper label {
        margin-bottom: 0;
        font-weight: 400;
        cursor: pointer;
    }

/* ============== LOGIN PAGE ============== */
body.login-page {
    min-height: 100vh; /* full ekran */
    background-image: url("/uploads/backpht/bckskl.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* optional: login formu ortalamaq */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background-color: var(--bg-paper);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 25px -5px rgba(22, 101, 52, 0.3);
}

    .login-logo i {
        font-size: 1.5rem;
        color: white;
    }

.login-header h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #fef2f2;
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.register-link {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.test-accounts {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.test-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.75rem;
}

.test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.test-item {
    background-color: var(--bg-subtle);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
}

    .test-item strong {
        display: block;
        color: var(--text-secondary);
        margin-bottom: 0.25rem;
    }

    .test-item span {
        display: block;
        color: var(--text-muted);
    }

/* ============== LAYOUT ============== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .sidebar-logo i {
        color: white;
        font-size: 1.25rem;
    }

.sidebar-brand-text h2 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.sidebar-brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

    .nav-link:hover {
        background-color: var(--bg-subtle);
        color: var(--text-primary);
        text-decoration: none;
    }

    .nav-link.active {
        background-color: var(--primary-light);
        color: var(--primary);
    }

    .nav-link i {
        width: 1.25rem;
        text-align: center;
        font-size: 1rem;
    }

    .nav-link .badge {
        margin-left: auto;
        background-color: var(--error);
        color: white;
        font-size: 0.6875rem;
        padding: 0.125rem 0.5rem;
        border-radius: var(--radius-full);
    }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--bg-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, var(--primary), #0d5528);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-footer form {
    margin: 0;
}

.logout-btn {
    width: 100%;
    justify-content: center;
    color: var(--text-secondary);
    background-color: var(--bg-paper);
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

    .logout-btn:hover {
        color: var(--error);
        border-color: #fecaca;
        background-color: #fef2f2;
        text-decoration: none;
    }

    .logout-btn i {
        font-size: 0.875rem;
    }
/* Main Content */
 .main-content {
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
    overflow-y: auto;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background-color: var(--bg-paper);
    border-bottom: 1px solid var(--border);
    padding: 0 1rem;
    align-items: center;
    gap: 1rem;
    z-index: 90;
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

    .mobile-menu-btn i {
        font-size: 1.25rem;
    }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* ============== PAGE HEADER ============== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.875rem;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ============== CARDS ============== */
.card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-subtle);
}

/* ============== STAT CARDS ============== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        text-decoration: none;
    }

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .stat-icon i {
        font-size: 1.5rem;
    }

    .stat-icon.orange {
        background-color: var(--secondary-light);
        color: var(--secondary);
    }

    .stat-icon.blue {
        background-color: #dbeafe;
        color: #2563eb;
    }

    .stat-icon.green {
        background-color: var(--primary-light);
        color: var(--primary);
    }

    .stat-icon.purple {
        background-color: #f3e8ff;
        color: #9333ea;
    }

    .stat-icon.red {
        background-color: #fee2e2;
        color: var(--error);
    }

/* ============== TABLES ============== */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--bg-subtle);
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

tr:hover {
    background-color: var(--bg-subtle);
}

.table-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

    .table-empty i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

/* ============== BADGES ============== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-neutral {
    background-color: var(--bg-subtle);
    color: var(--text-secondary);
}

/* ============== MODAL ============== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal {
    background-color: var(--bg-paper);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
}

    .modal-close:hover {
        color: var(--text-primary);
    }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============== SEARCH & FILTERS ============== */
.filters-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

    .search-box i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
    }

    .search-box input {
        padding-left: 2.75rem;
    }

.filter-select {
    min-width: 180px;
}

/* ============== ALERTS ============== */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.alert-warning {
    background-color: #fef9c3;
    border: 1px solid #fde047;
    color: #854d0e;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}

/* ============== TOAST NOTIFICATIONS ============== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: var(--bg-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background-color: var(--primary-light);
    color: var(--success);
}

.toast.error .toast-icon {
    background-color: #fee2e2;
    color: var(--error);
}

.toast.warning .toast-icon {
    background-color: #fef9c3;
    color: #854d0e;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

/* ============== EMPTY STATE ============== */
.empty-state {
    text-align: center;
    padding: 3rem;
}

    .empty-state i {
        font-size: 3rem;
        color: var(--border);
        margin-bottom: 1rem;
    }

    .empty-state p {
        color: var(--text-muted);
    }

/* ============== FILE UPLOAD ============== */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .file-upload:hover {
        border-color: var(--primary);
        background-color: var(--primary-light);
    }

    .file-upload.has-file {
        border-color: var(--primary);
        background-color: var(--primary-light);
    }

    .file-upload i {
        font-size: 2rem;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
    }

    .file-upload p {
        color: var(--text-muted);
        font-size: 0.875rem;
    }

    .file-upload input {
        display: none;
    }

/* ============== DEBT CARD ============== */
.debt-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.debt-card-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .debt-card-header:hover {
        background-color: var(--bg-subtle);
    }

.debt-card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.debt-card-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.debt-card-name {
    font-weight: 600;
    color: var(--text-primary);
}

.debt-card-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.debt-card-amount {
    text-align: right;
}

.debt-card-amount-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.debt-card-amount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

    .debt-card-amount-value.positive {
        color: var(--success);
    }

.debt-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-subtle);
}

.debt-stat {
    text-align: center;
}

.debt-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.debt-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.debt-card-details {
    display: none;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    background-color: var(--bg-subtle);
}

.debt-card.expanded .debt-card-details {
    display: block;
}

/* ============== TASK CARD ============== */
.task-card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

    .task-card:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

    .task-card.completed {
        background-color: var(--primary-light);
        border-color: #86efac;
    }

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.task-card-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.task-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .task-card-icon.pending {
        background-color: var(--secondary-light);
        color: var(--secondary);
    }

    .task-card-icon.completed {
        background-color: var(--primary-light);
        color: var(--primary);
    }

.task-card-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

    .task-card-meta span {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

.task-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============== EXPIRY CARDS ============== */
.expiry-card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

    .expiry-card.warning {
        border-color: #fde047;
        background-color: #fefce8;
    }

    .expiry-card.expired {
        border-color: #fecaca;
        background-color: #fef2f2;
    }

.expiry-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.expiry-card-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.expiry-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .expiry-card-icon.ok {
        background-color: var(--primary-light);
        color: var(--primary);
    }

    .expiry-card-icon.warning {
        background-color: #fef9c3;
        color: #854d0e;
    }

    .expiry-card-icon.expired {
        background-color: #fee2e2;
        color: var(--error);
    }

.expiry-card-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.expiry-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

    .expiry-card-meta span {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

.expiry-card-date {
    text-align: right;
}

.expiry-card-date-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.expiry-card-date-value {
    font-weight: 600;
}

    .expiry-card-date-value.ok {
        color: var(--success);
    }

    .expiry-card-date-value.warning {
        color: #854d0e;
    }

    .expiry-card-date-value.expired {
        color: var(--error);
    }

.expiry-days-left {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ============== PROGRESS BAR ============== */
.progress-bar {
    height: 0.5rem;
    background-color: var(--bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

    .progress-bar-fill.purple {
        background-color: #9333ea;
    }

/* ============== QUICK ACTIONS ============== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background-color: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-secondary);
}

    .quick-action-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background-color: var(--primary-light);
        text-decoration: none;
    }

    .quick-action-btn i {
        font-size: 1.5rem;
    }

    .quick-action-btn span {
        font-size: 0.875rem;
        font-weight: 500;
    }

/* ============== ACTIVITY LIST ============== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--bg-subtle);
    border-radius: var(--radius-md);
}

.activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .activity-icon.create {
        background-color: var(--primary-light);
        color: var(--success);
    }

    .activity-icon.update {
        background-color: #dbeafe;
        color: var(--info);
    }

    .activity-icon.delete {
        background-color: #fee2e2;
        color: var(--error);
    }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.activity-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============== TABS ============== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

    .tab:hover {
        color: var(--text-primary);
    }

    .tab.active {
        color: var(--primary);
    }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--primary);
        }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding-top: 5rem;
    }
}

@media (max-width: 640px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .debt-card-stats {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .modal {
        margin: 0.5rem;
    }
}

/* ============== UTILITIES ============== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--error);
}

.text-warning {
    color: #854d0e;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.hidden {
    display: none !important;
}
