/* Settings Page Specific Styles */

.settings-container {
    padding: 10px 0;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #4073c0 0%, #667eea 100%);
    color: white;
    border-radius: 10px;
    padding: 15px 25px 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(64, 115, 192, 0.2);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 234, 255, 0.261) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.page-header:hover::before {
    transform: translateX(100%);
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content h1 i {
    font-size: 28px;
    opacity: 0.9;
}

.header-content p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.breadcrumb {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Settings Sections */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.settings-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    border-color: rgba(64, 115, 192, 0.2);
}

.section-header {
    background: linear-gradient(135deg, #4073c0 0%, #667eea 100%);
    color: white;
    padding: 20px 30px;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.settings-section:hover .section-header::before {
    transform: translateX(100%);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.section-header h2 i {
    font-size: 20px;
    opacity: 0.9;
}

.section-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.section-content {
    padding: 30px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    gap: 10px;
}

.info-item:hover {
    background: rgba(64, 115, 192, 0.05);
    border-color: rgba(64, 115, 192, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.info-label i {
    color: #4073c0;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.info-value {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Settings Forms */
.settings-form {
    max-width: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #4073c0;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.form-input {
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: #4073c0;
    box-shadow: 0 0 0 4px rgba(64, 115, 192, 0.15), 0 4px 12px rgba(64, 115, 192, 0.1);
    transform: translateY(-1px);
}

.form-input:read-only {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .form-input {
    padding-right: 50px;
    flex: 1;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #4073c0;
}

.password-requirements {
    margin-top: 5px;
}

.password-requirements small {
    color: #6b7280;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #4073c0 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(64, 115, 192, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #365a9b 0%, #5a6fd8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 115, 192, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f8fafc;
    color: #4073c0;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #4073c0;
    transform: translateY(-1px);
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #fecaca;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fef2f2 0%, #fdf2f8 100%);
}

.danger-zone .section-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px;
    background: white;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.danger-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #dc2626;
    margin: 0 0 8px 0;
}

.danger-info p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    white-space: nowrap;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #4073c0 0%, #667eea 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
}

.verification-text {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

/* OTP Input */
.otp-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #4073c0;
    box-shadow: 0 0 0 3px rgba(64, 115, 192, 0.15);
    transform: scale(1.05);
}

.otp-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.otp-timer {
    text-align: center;
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
}

/* Delete Modal */
.danger-modal .modal-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.warning-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.warning-message i {
    color: #dc2626;
    font-size: 24px;
    margin-bottom: 10px;
}

.warning-message p {
    margin: 8px 0;
    color: #374151;
}

.warning-message p:first-of-type {
    color: #dc2626;
    font-weight: 600;
}

.warning-message ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #6b7280;
}

.warning-message li {
    margin: 5px 0;
}

.confirmation-text {
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    position: relative;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #4073c0;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: #4073c0;
    border-color: #4073c0;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-container {
        padding: 15px 0;
    }

    .page-header {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

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

    .breadcrumb {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }

    .section-content {
        padding: 25px 20px;
    }

    .section-header {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .danger-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        justify-content: center;
    }

    .otp-input-container {
        gap: 8px;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .modal-body {
        padding: 20px;
    }
}

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

    .header-content h1 {
        font-size: 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section-content {
        padding: 20px 15px;
    }

    .section-header {
        padding: 15px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }

    .info-value {
        text-align: left;
    }

    .otp-input {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}