.user-center {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.user-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.user-avatar-section {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
}

.avatar-edit-btn i {
    color: #667eea;
    font-size: 14px;
}

#user-nickname {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
}

#user-email {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}

.user-menu {
    padding: 15px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.menu-item.active {
    background: #f0f2ff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 500;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.user-main {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-section {
    display: none;
    padding: 30px;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.profile-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 25px;
}

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

.tab-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.tab-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.favorites-list {
    display: grid;
    gap: 15px;
}

.favorite-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.favorite-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.favorite-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f0f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 20px;
    flex-shrink: 0;
}

.favorite-info {
    flex: 1;
    min-width: 0;
}

.favorite-info h4 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #333;
}

.favorite-info p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.favorite-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.favorite-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.blue {
    background: #e6f0ff;
    color: #3b82f6;
}

.stat-icon.green {
    background: #e6f7ef;
    color: #10b981;
}

.stat-icon.orange {
    background: #fff3e6;
    color: #f59e0b;
}

.stat-icon.purple {
    background: #f3e6ff;
    color: #8b5cf6;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 13px;
    color: #888;
}

.stats-chart {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.stats-chart h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}

.stats-breakdown h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-name {
    width: 100px;
    font-size: 14px;
    color: #555;
}

.breakdown-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.breakdown-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}

.breakdown-value {
    width: 80px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.settings-group {
    margin-bottom: 35px;
}

.settings-group h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
}

.setting-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
}

.setting-desc {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    display: block;
}

.switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.danger-zone {
    border: 1px solid #fee;
    background: #fff5f5;
    padding: 20px;
    border-radius: 10px;
}

.danger-zone h3 {
    color: #dc2626;
}

.danger-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.danger-btn:hover {
    background: #b91c1c;
}

.btn.primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn.primary-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #eee;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .user-center {
        flex-direction: column;
    }

    .user-sidebar {
        width: 100%;
    }

    .user-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }

    .menu-item {
        flex: 1;
        min-width: 120px;
        padding: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }
}