.settings-wrapper {
    margin: 80px 0;

    @media screen and (max-width: 768px) {
        margin: 40px 0;
    }

    .settings-title {
        text-align: center;
        margin-bottom: 48px;
        font-size: 32px;
        font-weight: 500;
        color: #1C1C1C;
    }

    .settings-tabs {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 40px;
        flex-wrap: wrap;

        @media screen and (max-width: 768px) {
            gap: 12px;
        }

        .settings-tab {
            padding: 12px 32px;
            border-radius: 8px;
            border: 1px solid #1B8354;
            background: white;
            color: #1B8354;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;

            @media screen and (max-width: 768px) {
                padding: 10px 20px;
                font-size: 14px;
            }

            &:hover {
                background: #1B835410;
            }

            &.active {
                background: #1B8354;
                color: white;
            }

            &.delete-tab {
                border-color: #E53E3E;
                color: #E53E3E;

                &:hover {
                    background: #E53E3E10;
                }

                &.active {
                    background: #E53E3E;
                    color: white;
                }
            }
        }
    }

    .settings-content {
        max-width: 900px;
        margin: 0 auto;
    }
}

.settings-form-container {
    background: white;



    @media screen and (max-width: 768px) {
        padding: 24px;
    }

    .settings-section-title {
        font-size: 24px;
        font-weight: 700;
        color: #1C1C1C;
        text-align: center;
        margin-bottom: 32px;

        @media screen and (max-width: 768px) {
            font-size: 20px;
            margin-bottom: 24px;
        }
    }

    .settings-form {
        display: flex;
        flex-direction: column;
        gap: 24px;

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

            @media screen and (max-width: 768px) {
                grid-template-columns: 1fr;
            }
        }

        .city-select-wrapper {
            .city-select-trigger {
                width: 100%;
                height: 65px;
                border: 1px solid #E0E0E0;
                border-radius: 8px;
                padding: 0 16px;
                background: white;
                cursor: pointer;

                &.error-password {
                    border-color: #E53E3E;
                }
            }
        }

    }

    .settings-submit-btn {
        width: 100%;
        height: 56px;
        background: #1B8354;
        color: white;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        margin: 0 auto;
        margin-top: 16px;
        cursor: pointer;
        transition: all 0.3s ease;

        &:hover:not(:disabled) {
            background: #156b43;
        }

        &:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        @media screen and (max-width: 768px) {
            width: 100%;
        }
    }
}

// OTP Form Styles
.otp-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;

    .otp-description {
        text-align: center;
        font-size: 16px;
        color: #1B8354;
        margin-bottom: 8px;

        .phone-highlight {
            font-weight: 700;
            color: #1B8354;
        }
    }

    .otp-inputs {
        display: flex;
        gap: 16px;
        justify-content: center;

        @media screen and (max-width: 768px) {
            gap: 12px;
        }

        .otp-input {
            width: 70px;
            height: 70px;
            border: 2px solid #1B8354;
            border-radius: 8px;
            text-align: center;
            font-size: 24px;
            font-weight: 600;
            color: #1C1C1C;
            transition: all 0.3s ease;

            @media screen and (max-width: 768px) {
                width: 60px;
                height: 60px;
                font-size: 20px;
            }

            &:focus {
                outline: none;
                border-color: #156b43;
                box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.1);
            }
        }
    }

    .otp-footer {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 16px;

        .timer {
            font-size: 18px;
            font-weight: 600;
            color: #1B8354;
        }

        .resend-section {
            display: flex;
            align-items: center;
            gap: 8px;

            .resend-text {
                font-size: 14px;
                color: #666;
            }

            .resend-button {
                background: none;
                border: none;
                color: #1B8354;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                text-decoration: underline;
                transition: color 0.3s ease;

                &:hover:not(:disabled) {
                    color: #156b43;
                }

                &:disabled {
                    opacity: 0.5;
                    cursor: not-allowed;
                }
            }
        }
    }
}

// Delete Account Modal
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.delete-modal {
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

    @media screen and (max-width: 768px) {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .delete-modal-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;

        .warning-icon {
            width: 120px;
            height: 120px;
            object-fit: contain;

            @media screen and (max-width: 768px) {
                width: 100px;
                height: 100px;
            }
        }

        .delete-modal-title {
            font-size: 24px;
            font-weight: 700;
            color: #1C1C1C;
            text-align: center;
            line-height: 1.5;

            @media screen and (max-width: 768px) {
                font-size: 20px;
            }
        }

        .delete-modal-actions {
            display: flex;
            gap: 16px;
            width: 100%;
            max-width: 500px;

            @media screen and (max-width: 768px) {
                flex-direction: column-reverse;
            }

            .cancel-delete-btn,
            .confirm-delete-btn {
                flex: 1;
                height: 56px;
                border-radius: 8px;
                font-size: 18px;
                font-weight: 600;
                cursor: pointer;
                transition: all 0.3s ease;

                @media screen and (max-width: 768px) {
                    width: 100%;
                }
            }

            .cancel-delete-btn {
                background: #1B8354;
                color: white;
                border: none;

                &:hover {
                    background: #156b43;
                }
            }

            .confirm-delete-btn {
                background: white;
                color: #E53E3E;
                border: 2px solid #E53E3E;

                &:hover {
                    background: #E53E3E10;
                }
            }
        }
    }
}

.notifications-wrapper {
    padding: 60px 0;

    .notifications-title {
        text-align: center;
        margin-bottom: 48px;
        font-size: 32px;
        font-weight: 500;
        color: #1C1C1C;
    }

    @media screen and (max-width: 768px) {
        padding: 40px 0;
    }

    .notifications-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 1px solid #E5E7EB;

        @media screen and (max-width: 768px) {
            margin-bottom: 30px;
        }

        .delete-all-btn {
            color: #E53E3E;
            font-size: 16px;
            font-weight: 600;
            background: none;
            border: none;
            cursor: pointer;
            transition: opacity 0.3s ease;

            &:hover {
                opacity: 0.7;
            }

            @media screen and (max-width: 768px) {
                font-size: 14px;
            }
        }

        .notifications-toggle {
            display: flex;
            align-items: center;
            gap: 12px;

            .toggle-label {
                font-size: 16px;
                font-weight: 500;
                color: #1C1C1C;

                @media screen and (max-width: 768px) {
                    font-size: 14px;
                }
            }


        }
    }

    .notifications-list {
        display: flex;
        flex-direction: column;
        gap: 16px;

        .no-notifications {
            text-align: center;
            padding: 60px 20px;
            color: #6B7280;
            font-size: 18px;
        }

        .notification-card {
            background: #F9FAFB;
            border-radius: 12px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
            transition: all 0.3s ease;

            &:hover {
                background: #F3F4F6;
            }

            @media screen and (max-width: 768px) {
                padding: 16px;
                gap: 12px;
            }

            .delete-notification-btn {

                background: none;
                border: none;
                color: #E53E3E;
                cursor: pointer;
                transition: opacity 0.3s ease;
                padding: 8px;
                display: flex;
                align-items: center;
                justify-content: center;

                &:hover {
                    opacity: 0.7;
                }

                [dir="rtl"] & {
                    left: auto;
                    right: 20px;
                }

                @media screen and (max-width: 768px) {
                    left: 12px;

                    [dir="rtl"] & {
                        left: auto;
                        right: 12px;
                    }
                }
            }

            .notification-icon {
                flex-shrink: 0;
                width: 56px;
                height: 56px;
                background: #E8F5EF;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 16px;

                [dir="rtl"] & {
                    margin-right: 0;
                    margin-left: 16px;
                }

                @media screen and (max-width: 768px) {
                    width: 48px;
                    height: 48px;
                    margin-right: 12px;

                    [dir="rtl"] & {
                        margin-right: 0;
                        margin-left: 12px;
                    }
                }

                img {
                    width: 28px;
                    height: 28px;
                    object-fit: contain;

                    @media screen and (max-width: 768px) {
                        width: 24px;
                        height: 24px;
                    }
                }
            }

            .notification-content {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 8px;
                padding-right: 40px;

                [dir="rtl"] & {
                    padding-right: 0;
                    padding-left: 40px;
                }

                @media screen and (max-width: 768px) {
                    padding-right: 32px;

                    [dir="rtl"] & {
                        padding-right: 0;
                        padding-left: 32px;
                    }
                }

                .notification-message {
                    font-size: 16px;
                    font-weight: 500;
                    color: #1C1C1C;
                    line-height: 1.5;
                    margin: 0;

                    @media screen and (max-width: 768px) {
                        font-size: 14px;
                    }
                }

                .notification-time {
                    font-size: 14px;
                    color: #9CA3AF;

                    @media screen and (max-width: 768px) {
                        font-size: 12px;
                    }
                }
            }
        }
    }
}