/* =====================================================
   ACCOUNT PAGE - USER DASHBOARD
   Modern, clean and professional design
   ===================================================== */

:root {
    --primary-dark: #1a1a2e;
    --primary-light: #16213e;
    --accent-blue: #0f3460;
    --accent-teal: #1abc9c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-light: #ecf0f1;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
}

.account-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* ===== SIDEBAR ===== */
.account-sidebar {
    background: white;
    border-radius: 12px;
    padding: 32px;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 20px;
}

.account-user {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.account-user h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 6px 0;
}

.account-user p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    word-break: break-all;
}

.account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-nav li {
    margin-bottom: 0;
}

.account-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

.account-nav a:hover {
    background: #f8f9fa;
    color: var(--accent-teal);
    padding-left: 20px;
}

.account-nav a.active {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.1), rgba(22, 160, 133, 0.1));
    color: var(--accent-teal);
    font-weight: 600;
    border-left: 3px solid var(--accent-teal);
    padding-left: 13px;
}

/* ===== MAIN CONTENT ===== */
.account-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.account-main h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 28px 0;
}

/* ===== DASHBOARD STATS ===== */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-box h4 {
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.stat-box .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-teal);
}

.stat-box .value span {
    font-size: 18px;
    color: var(--text-light);
}

/* ===== TABLES ===== */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.orders-table thead {
    background: #f8f9fa;
    border: 1px solid var(--border-light);
}

.orders-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.orders-table tbody tr:hover {
    background: #f8f9fa;
}

.orders-table .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.orders-table .badge-pending {
    background: #fff3cd;
    color: #856404;
}

.orders-table .badge-processing {
    background: #cfe2ff;
    color: #084298;
}

.orders-table .badge-approved {
    background: #d1e7dd;
    color: #0f5132;
}

.orders-table .badge-rejected {
    background: #f8d7da;
    color: #842029;
}

.orders-table .link {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.orders-table .link:hover {
    color: #16a085;
    text-decoration: underline;
}

/* ===== FORMS ===== */
.account-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 4px;
}

.form-group button {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent-teal), #16a085);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 188, 156, 0.3);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.pagination a,
.pagination button {
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 13px;
    background: white;
}

.pagination a:hover,
.pagination button:hover {
    background: #f8f9fa;
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.pagination span {
    color: var(--text-light);
    font-size: 13px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-danger {
    background: #fff5f5;
    color: #c62828;
    border-left-color: #e74c3c;
}

.alert-success {
    background: #f0fdf4;
    color: #27ae60;
    border-left-color: #27ae60;
}

.alert strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--border-light);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-teal), #16a085);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(26, 188, 156, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #e0e0e0;
    box-shadow: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .account-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-sidebar {
        position: static;
    }

    .account-main {
        padding: 24px;
    }

    .account-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .orders-table {
        font-size: 12px;
    }

    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .account-wrapper {
        gap: 12px;
    }

    .account-sidebar {
        padding: 20px;
    }

    .account-main {
        padding: 16px;
    }

    .account-main h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }

    .stat-box {
        padding: 16px;
    }

    .stat-box .value {
        font-size: 24px;
    }

    .orders-table {
        font-size: 11px;
        overflow-x: auto;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
}
