/* ==========================
   ACCOUNT PAGE STYLING
========================== */

.account-wrapper {
    display: flex;
    gap: 20px;
    padding: 30px 40px;
    background: #f5f5f5;
    min-height: 80vh;
}

/* ================= Sidebar ================= */

.account-sidebar {
    width: 260px;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sidebar-menu li {
    padding: 10px 8px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s ease;
}

.sidebar-menu li:hover {
    background: #f1f1f1;
}

.sidebar-menu li.active {
    background: #eee;
    font-weight: 600;
}

.sidebar-section h4 {
    font-size: 13px;
    margin: 15px 0 8px;
    color: #666;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section li {
    padding: 8px 0;
    font-size: 14px;
    cursor: pointer;
}

.sidebar-section li:hover {
    color: #ff9900;
}

.sidebar-section .danger {
    color: red;
}

.logout {
    margin-top: 20px;
}

.logout a {
    text-decoration: none;
    color: #ff9900;
    font-weight: 600;
}

/* ================= Content ================= */

.account-content {
    flex: 1;
}

.page-title {
    margin-bottom: 20px;
    font-size: 20px;
}

/* Grid layout */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Card */
.account-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.account-card h3 {
    font-size: 13px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #555;
}

.card-body {
    padding: 15px;
    font-size: 14px;
    color: #333;
}

.credit-balance {
    font-weight: 600;
    color: #007bff;
}

.edit-link {
    display: inline-block;
    margin-top: 10px;
    color: #ff9900;
    text-decoration: none;
    font-weight: 500;
}

.edit-link:hover {
    text-decoration: underline;
}

/* ================= Responsive ================= */

@media (max-width: 992px) {
    .account-wrapper {
        flex-direction: column;
    }

    .account-sidebar {
        width: 100%;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }
}