* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Main Layout */
.page-section {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    background: #fff;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Shared Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    flex-shrink: 0;
    overflow: hidden;
    background: white;
    border-right: 1px solid #e0e0e0;
    z-index: 10;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.sidebar-close:hover {
    color: #333;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    flex-shrink: 0;
}

/* Shared Main Content Styles */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

@media (max-width: 968px) {

    /* Hide sidebar on mobile, show via toggle */
    .sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        height: calc(100vh - 60px);
        transform: translateX(-100%);
        z-index: 1002;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

}

@media (max-width: 480px) {
    .settings-content {
        width: 95%;
    }
}




.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.2s ease-out;
}

.settings-content {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.settings-close:hover {
    color: #333;
}

.settings-body {
    padding: 20px;
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: #ff8ba7;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.setting-item .input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.setting-item input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.setting-item input:focus {
    outline: none;
    border-color: #ff8ba7;
}

.setting-item .hint {
    font-size: 0.8rem;
    color: #adb5bd;
}

.settings-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: right;
}

.settings-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.settings-btn.primary {
    background: linear-gradient(135deg, #ff8ba7 0%, #ffb3c1 100%);
    color: white;
}

.settings-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 139, 167, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Toast Notification - shared across all pages */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.toast.success {
    background: #27ae60;
}