/* Settings Page Styles */

/* Login Required Section */
.login-required-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.login-prompt-card {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 93%;
    width: 100%;
    backdrop-filter: blur(10px);
}

.lock-icon {
    width: 64px;
    height: 64px;
    fill: #f1d400;
    margin-bottom: 20px;
}

.login-prompt-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #f1d400;
}

.login-prompt-card p {
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.login-prompt-btn {
    background: linear-gradient(135deg, #f1d400, #e6c200);
    color: #1a1a1a;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.1);
}

.login-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(241, 212, 0, 0.4);
    background: linear-gradient(135deg, #e6c200, #d9b300);
}

.register-text {
    font-size: 0.9rem !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.register-text a {
    color: #f1d400;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

.settings-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    background: #1a1a1a;
}

/* Sidebar */
.settings-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cccccc;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.menu-item.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.menu-text {
    font-weight: 500;
}

/* Content Area */
.settings-content {
    flex: 1;
    padding: 30px 40px;
    width: 800px;
}

.settings-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    color: #ffffff;
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.section-header p {
    color: #cccccc;
    font-size: 1.1rem;
    margin: 0;
}

/* Cards */
.settings-card, .profile-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-card h3 {
    color: #4CAF50;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
}

/* Profile Card */
.profile-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4CAF50;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #4CAF50;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    background: #45a049;
    transform: scale(1.1);
}

.profile-form {
    flex: 1;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
}

.form-help {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Toggle Switches */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.toggle-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #4CAF50;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(25px);
}

/* Buttons */
.btn-primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #1976D2;
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Danger Zone */
.danger-zone {
    padding: 20px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    margin-top: 20px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile toggle button - hidden by default, only shown on mobile */
.mobile-sidebar-toggle {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
        position: relative;
    }
    
    .settings-sidebar {
        width: 100%;
        position: fixed;
        top: 80px;
        left: -200%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(15px);
        border-radius: 0;
        margin: 0;
        padding: 20px;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .settings-sidebar.expanded {
        left: 0;
        width: 50%;
    }
    
    /* Mobile toggle button - only visible on mobile */
    .mobile-sidebar-toggle {
        display: flex;
        position: fixed;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        background: rgba(76, 175, 80, 0.9);
        border: 2px solid #4CAF50;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    }
    
    .mobile-sidebar-toggle:hover {
        background: rgba(76, 175, 80, 1);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 25px rgba(76, 175, 80, 0.6);
    }
    
    .mobile-sidebar-toggle svg {
        width: 24px;
        height: 24px;
        fill: white;
        transition: transform 0.3s ease;
    }
    
    .settings-sidebar.expanded ~ .settings-content .mobile-sidebar-toggle svg {
        transform: rotate(180deg);
    }
    
    .settings-content {
        padding: 20px;
        width: 100%;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .settings-sidebar.expanded ~ .settings-content {
        margin-left: 50%;
        width: 50%;
    }
    
    .sidebar-menu {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }
    
    .menu-item {
        min-width: auto;
        justify-content: flex-start;
        padding: 15px 20px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px);
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .menu-item:hover {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.25);
    }
    
    .menu-item.active {
        box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
        border-color: #4CAF50;
    }
    
    .menu-text {
        display: inline;
    }
    
    .settings-content {
        padding: 20px;
    }
    
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .settings-content {
        padding: 15px;
    }
    
    .settings-card, .profile-card {
        padding: 20px;
    }
    
    .user-avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
    }
}
