.settings-page {
    padding: 2rem 0;
    background: #f8fafc;
    min-height: calc(100vh - 80px);
}

.settings-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.settings-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-sidebar h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.nav-item i {
    width: 1.25rem;
    height: 1.25rem;
}

.settings-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-section {
    margin-bottom: 3rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-description {
    color: #64748b;
    margin-bottom: 2rem;
}

.setting-item {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.setting-item:hover {
    background: #f8fafc;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.setting-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-left: 2rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary { 
    background: var(--primary-color);
    color: white; 
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.error-message i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Billing History Styles */
.billing-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.billing-table table {
    width: 100%;
    border-collapse: collapse;
}

.billing-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 500;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.billing-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: #1e293b;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* Subscription Info Styles */
.subscription-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.subscription-details {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item .label {
    font-weight: 500;
    color: #64748b;
}

.detail-item .value {
    color: #1e293b;
}

.status-active {
    color: #059669;
}

.status-canceled {
    color: #dc2626;
}

/* Privacy Section Styles */
.privacy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.privacy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.danger-zone {
    background: #fef2f2;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.danger-zone h3 {
    color: #dc2626; 
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column; 
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 80%;
        justify-content: center;
    }
}