.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* אנימציית טעינה נוספת */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    flex-direction: column;
}

#loading .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #ff0000;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-bottom: 20px;
}

#loading p {
    color: white;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* הודעות הצלחה */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.success-notification.show {
    transform: translateX(0);
}

.success-notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification-content {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-content span {
    font-weight: 500;
    font-size: 14px;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-notification:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* הודעת יום הולדת */
.birthday-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10001;
    transition: all 0.5s ease;
}

.birthday-notification.show {
    transform: translate(-50%, -50%) scale(1);
}

.birthday-notification.hide {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.birthday-content {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.6);
    text-align: center;
    min-width: 400px;
    position: relative;
    animation: birthday-pulse 2s infinite;
}

.birthday-header {
    font-size: 3em;
    margin-bottom: 20px;
    animation: birthday-bounce 1s infinite;
}

.birthday-text {
    font-size: 1.4em;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.birthday-footer {
    font-size: 2.5em;
    margin-top: 20px;
    animation: birthday-bounce 1s infinite 0.5s;
}

.close-birthday {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

@keyframes birthday-pulse {

    0%,
    100% {
        box-shadow: 0 20px 60px rgba(255, 107, 107, 0.6);
    }

    50% {
        box-shadow: 0 25px 80px rgba(255, 107, 107, 0.8);
    }
}

@keyframes birthday-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}