/* User Center Styles */

.user-container {
    display: flex;
    gap: 30px;
    padding: 40px 15px;
    min-height: 600px;
}

/* Sidebar */
.user-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px 0;
    height: fit-content;
}

.user-info-box {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.user-info-box .avatar {
    font-size: 48px;
    margin-bottom: 10px;
}

.user-info-box .username {
    font-weight: bold;
    color: #333;
}

.user-menu li a {
    display: block;
    padding: 12px 30px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.user-menu li a:hover, .user-menu li a.active {
    color: var(--accent);
    background: #f9f9f9;
    border-left-color: var(--accent);
}

/* Main Content Area */
.user-main {
    flex: 1;
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
}

.user-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.user-header h2 {
    font-size: 20px;
    color: #333;
    font-weight: normal;
}

/* Dashboard Stats */
.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
}

.stat-num {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 5px;
    font-weight: bold;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Tables (Orders, Addresses) */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h3 {
    font-size: 16px;
    color: #333;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}

.view-all {
    font-size: 12px;
    color: #999;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.order-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    color: #666;
    font-weight: normal;
}

.order-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.status.paid { color: green; }
.status.pending { color: orange; }

.btn-link {
    color: var(--accent);
    font-size: 12px;
}

/* Account Info */
.account-info {
    margin-top: 40px;
}

.account-info h3 {
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-row {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.info-row .label {
    width: 100px;
    display: inline-block;
    color: #999;
}

/* Address & Forms */
.form-box {
    max-width: 500px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-row textarea {
    resize: vertical;
}

.address-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.address-item {
    border: 1px solid #eee;
    padding: 20px;
    position: relative;
}

.address-item.default {
    border-color: var(--accent);
    background: var(--cart-selected-bg, #FEF6F0);
}

.address-item h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.address-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 5px;
}

.address-actions {
    margin-top: 15px;
    font-size: 12px;
    display: flex;
    gap: 15px;
}

.address-actions a {
    color: #999;
}

.address-actions a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .user-container {
        flex-direction: column;
    }
    
    .user-sidebar {
        width: 100%;
    }
    
    .address-list {
        grid-template-columns: 1fr;
    }
}
