/* ===================== PAGE LAYOUT ===================== */
.settings-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.settings-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInFromBottom 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    animation: fadeInDown 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.page-header p {
    color: #666;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

/* ===================== FORM SECTIONS ===================== */
.form-section {
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.form-section:nth-child(1) { animation-delay: 0.4s; }
.form-section:nth-child(2) { animation-delay: 0.5s; }
.form-section:nth-child(3) { animation-delay: 0.6s; }
.form-section:nth-child(4) { animation-delay: 0.7s; }
.form-section:nth-child(5) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #21a300;
}

/* ===================== SETTING ITEMS ===================== */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(33, 163, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(33, 163, 0, 0.1);
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(33, 163, 0, 0.08);
    transform: translateX(5px);
}

.setting-info {
    flex: 1;
}

.setting-info label {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.setting-info small {
    color: #666;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

/* ===================== TOGGLE SWITCH ===================== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

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

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

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #21a300;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* ===================== FORM GROUPS ===================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #21a300;
    background: white;
    box-shadow: 0 0 0 4px rgba(33, 163, 0, 0.1);
}

/* ===================== THEME SELECTOR ===================== */
.theme-selector {
    display: flex;
    gap: 10px;
}

.theme-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    border-color: #21a300;
    color: #21a300;
    transform: translateY(-2px);
}

.theme-btn.active {
    background: linear-gradient(135deg, #41ed3b 0%, #099f04 100%);
    border-color: #21a300;
    color: white;
}

/* ===================== DANGER SECTION ===================== */
.danger-section {
    background: rgba(220, 53, 69, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.danger-section h2 {
    border-bottom-color: #dc3545;
}

/* ===================== ACTION ITEMS ===================== */
.action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.action-info {
    flex: 1;
}

.action-info label {
    display: block;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.action-info small {
    color: #666;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* ===================== MESSAGES ===================== */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    display: none;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.success-message {
    color: #28a745;
    font-size: 14px;
    margin: 20px 0;
    padding: 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    border-left: 4px solid #28a745;
    display: none;
    animation: slideInFromRight 0.5s ease;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================== FORM ACTIONS ===================== */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    animation: fadeInUp 0.8s ease 0.9s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.form-actions .btn {
    padding: 12px 30px;
    font-size: 15px;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 768px) {
    .settings-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .toggle-switch {
        align-self: flex-end;
    }

    .action-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .action-item .btn {
        width: 100%;
    }

    .theme-selector {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .settings-page {
        padding: 20px 10px;
    }

    .settings-container {
        padding: 25px 15px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .form-section h2 {
        font-size: 18px;
    }
}