dialog {
    height: max-content;
    width: 90dvw;
    max-height: 90dvh;
    border-radius: 20px;
    z-index: 999;
    overflow: hidden;
    background: none;
    margin: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px var(--Black);
    transition: opacity 0.2s ease-in, display 0.2s ease-in;
    transition-behavior: allow-discrete;
    opacity: 1;
}


/* The style when closed */

@starting-style {
    dialog {
        margin: auto;
        opacity: 0;
    }
}

dialog::backdrop {
    backdrop-filter: blur(10px);
}

/* The style when closed */
dialog:not([open]) {
    margin: auto;
    z-index: 999999;
    opacity: 0;
}


/* dialogs commons */
.estefsarheader,
.followHeader,
.callusHeader,
.alertHeader,
.ShekhSoundsDialogHeader {
    color: var(--Black);
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 20px;
    gap: 15px;
    height: max-content;
}

.EstefsarItems,
.followsitems,
.callusitems,
.alert1items,
.ShekhSoundsDialogItems {
    padding: 20px;
    background: var(--White);
    position: relative;
    width: 100%;
    height: 100%;
}

.ShekhSoundsDialog,
.ShekhSoundsDialogItems,
.ShekhSounds {
    overflow: auto;
}

.callusclose,
.Followsclose,
.closeEstefsar,
.ShekhSoundsDialogclose {
    background: var(--Cream);
    padding: 10px;
    border-radius: 10px;
}

/* Error Dialog */
.alert1 {
    margin: auto;
    height: max-content;
    width: max-content;
    width: 90dvw;
    border-radius: 20px;
}

.alert1items {
    background: var(--White);
    padding: 20px;
    position: relative;
    width: 100%;
    height: 100%;
}

.alert1text {
    color: var(--Black);
    text-align: center;
}

.submitAlert {
    width: 100%;
    padding: 10px;
    font-family: var(--mff);
    font-size: 20px;
    border-radius: 10px;
    background: var(--Cream);
    margin: 15px 0 0 0;
    font-weight: 600;
}

/* Estefsar */
.Estefsar {
    overflow: auto;
    height: 90dvh;
}

.one {
    display: flex;
    align-items: center;
    gap: 15px;
}

.one>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.two {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.dark-mode .estefsarvideo {
    filter: invert(1);
}

.estefsarcontent {
    width: 100%;
    height: calc(100% - (50px + 20px));
    max-height: 90dvh;
}

.estefsarform {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    gap: 15px;
    overflow: auto
}

.estefsarform input[type="submit"],
.estefsarform input[type="text"],
.estefsarform textarea {
    width: 100%;
    padding: 10px;
    background: var(--Cream);
    font-family: var(--mff);
    font-size: 20px;
    font-weight: 600;
    border-radius: 20px;
    color: var(--Navy-Blue);
}

.estefsarform input[type="text"] {
    flex-basis: 5%;
}

.estefsarform input[type="submit"] {
    flex-basis: 5%;
    cursor: pointer;
}

.estefsarform textarea {
    flex-basis: 80%;
}


/* Follows */
.ShekhSoundsDialog {
    height: max-content;
    width: 90vw;
    border-radius: 20px;
    z-index: 999;
    overflow: hidden;
}

.ShekhSounds {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    width: 100%;
    gap: 20px;
}

body.dark-mode .X {
    filter: invert(1);
}

.ShekhSounds>li {
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--Black);
    border-radius: 15px 0;
    cursor: pointer;

    &:hover {
        transform: translateY(-10px);
        box-shadow: 0 0 10px var(--Black);
        border-color: var(--Gold);
    }
}


/* Contact Us */
.numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(100%, 1fr));
    gap: 20px;
    width: 100%;
}

.number {
    padding: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    gap: 10px;
    border: 2px solid var(--Black);
    border-radius: 15px 0;
    cursor: pointer;

    &:hover {
        text-decoration: underline;
        transform: translateY(-10px);
        box-shadow: 0 0 10px var(--Black);
        border-color: var(--Gold);
    }
}

.number a {
    color: var(--Black);
    width: 100%;
}

.additions {
    display: none;
}

/* user Name */
.User_Name {
    width: max-content;
    border: 3px solid var(--Gold);
    background: var(--White);
}

.userName {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.userName img {
    margin-bottom: 10px;
}

.UserNameForm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.NameSubmit {
    width: 60px;
    padding: 10px;
    font-family: var(--mff);
    font-size: 15px;
    border-radius: 10px;
    background: var(--Cream);
    font-weight: 600;
    cursor: pointer;
}

.NameSubmit:hover {
    background: var(--Gold);
    color: var(--Navy-Blue);
}

.NameInput {
    padding: 10px;
    border-radius: 5px;
    font-size: 20px;
    font-family: var(--sff);
    color: var(--Black);
    background: var(--White);
    border: 2px solid var(--Black);
    border-radius: 10px 0;

    &::placeholder {
        color: var(--Black);
    }
}

.NameInput::placeholder {
    color: var(--Navy-Blue)
}

/* ShekhSoundsDialog */
.ShekhSounds>li {
    width: 100%;
    justify-content: center;
    color: var(--Black);
    font-size: 1.5rem;
    font-weight: 600;
}

/* CSS Variables for consistent theming */
:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8860B;
    --light-gold: #F1E5AC;
    --dark-bg: #1E2A3A;
    --darker-bg: #15202B;
    --light-bg: #2C3E50;
    --text-primary: #FFFFFF;
    --text-secondary: #E2E8F0;
    --text-muted: #A0AEC0;
    --success: #48BB78;
    --danger: #F56565;
    --border-radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Audio Player Dialog */
.audio-player-dialog {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    border: none;
    padding: 0;
    background: var(--darker-bg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: fixed;
}

.audio-player-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* Decorative Elements */
.islamic-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 10% 20%, var(--primary-gold) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--primary-gold) 0%, transparent 20%);
    pointer-events: none;
}

.corner-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

.corner-top-left {
    top: 0;
    left: 0;
    border-top: 2px solid var(--primary-gold);
    border-left: 2px solid var(--primary-gold);
    border-top-left-radius: var(--border-radius);
}

.corner-top-right {
    top: 0;
    right: 0;
    border-top: 2px solid var(--primary-gold);
    border-right: 2px solid var(--primary-gold);
    border-top-right-radius: var(--border-radius);
}

.corner-bottom-left {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--primary-gold);
    border-left: 2px solid var(--primary-gold);
    border-bottom-left-radius: var(--border-radius);
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--primary-gold);
    border-right: 2px solid var(--primary-gold);
    border-bottom-right-radius: var(--border-radius);
}

/* Header */
.audio-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.audio-player-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-gold);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.close-audio-player {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.close-audio-player:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Content */
.audio-player-content {
    padding: 1.8rem;
    position: relative;
}

.audio-player-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.audio-player-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
}

.audio-player-title p {
    margin: 0;
    color: var(--primary-gold);
    font-size: 1rem;
}

/* Audio Controls */
.audio-controls {
    margin-bottom: 1.8rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.control-buttons button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.control-buttons button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-buttons .play-pause {
    background: var(--primary-gold);
    color: #000;
    width: 60px;
    height: 60px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.control-buttons .play-pause:hover {
    background: var(--dark-gold);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.7);
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.download-btn {
    font-size: 1rem;
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sff);
}

.download-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Error Message */
.error-message {
    background: rgba(245, 101, 101, 0.1);
    color: var(--danger);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

/* Responsive Design */
@media (max-width: 600px) {
    .audio-player-dialog {
        width: 95dvw;
        /* margin: 0 auto; */
    }

    .control-buttons {
        gap: 0.8rem;
    }

    .control-buttons .play-pause {
        width: 55px;
        height: 55px;
    }

    .audio-player-content {
        padding: 1.5rem;
    }

    .audio-player-title h3 {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}