/* Base notification styles */
#notification_content {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
    z-index: 10000;
}

#notification_content.opened {
    transform: translateX(-50%) translateY(0);
    top: 20px;
}

/* Regular notification styles */
.notif_content {
    padding: 16px;
}

.notif_content p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* Regular notification types */
#notification_content[data-typeInfo="error"] {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
}

#notification_content[data-typeInfo="success"] {
    background: #dcfce7;
    border-left: 4px solid #16a34a;
}

/* Special Myriam container styles */
#notification_content[data-typeInfo="Myriam"] {
    top: 0%;
    transform: translate(-50%, -50%) scale(0.9);
    min-width: 450px;
    max-width: 550px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border: none;
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

#notification_content[data-typeInfo="Myriam"].opened {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    top: 50%;
}
/* Content styling for Myriam */
#notification_content[data-typeInfo="Myriam"] .notif_content {
    padding: 0;
}

#notification_content[data-typeInfo="Myriam"] .notif_content p {
    color: #0c4a6e;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
    margin-bottom: 24px;
}

/* Next button for Myriam */
#notification_content[data-typeInfo="Myriam"] button.next {
    background: #0369a1;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.2);
}

#notification_content[data-typeInfo="Myriam"] button.next:hover {
    background: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

#notification_content[data-typeInfo="Myriam"] button.next:active {
    transform: translateY(0);
}

/* Close button for Myriam */
#notification_content[data-typeInfo="Myriam"] .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    color: #0c4a6e;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#notification_content[data-typeInfo="Myriam"] .close-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

#notification_content[data-typeInfo="Myriam"] .close-btn:hover svg {
    transform: scale(1.1);
}

/* Alpha Checker Overlay */
.alpha_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 64, 128, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

/* Alpha Checker Container */
#alpha_checker {
    background: white;
    border-radius: 8px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
#alpha_checker .close-checker {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 64, 128, 0.1);
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #6b7280;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#alpha_checker .close-checker:hover {
    background: rgba(0, 64, 128, 0.2);
    color: #374151;
}

#alpha_checker .close-checker svg {
    display: block;
}

/* Content styling */
#alpha_checker h5 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
}

#alpha_checker p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 32px;
}

/* Input group */
#alpha_checker .input-group {
    margin-bottom: 24px;
}

#alpha_checker .input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

#alpha_checker .input-group-prepend {
    display: flex;
    gap: 8px;
    align-items: center;
}

#alpha_checker .readonly-input {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    min-width: 80px;
    cursor: not-allowed;
}

#alpha_checker #code {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    text-align: center;
}

#alpha_checker #code:focus {
    outline: none;
    border-color: #004080;
    box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.1);
}

#alpha_checker #code::placeholder {
    color: #9ca3af;
    letter-spacing: normal;
    text-align: center;
}

#alpha_checker #phone_chk {
    display: none;
}

/* Button group */
#alpha_checker .button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#alpha_checker #MIG {
    background: #004080;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#alpha_checker #MIG:hover {
    background: #009E60;
    transform: translateY(-1px);
}

#alpha_checker #MIG:active {
    transform: translateY(0);
}

#alpha_checker #RE {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#alpha_checker #RE:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    #alpha_checker {
        padding: 24px;
        margin: 16px;
    }

    #alpha_checker h5 {
        font-size: 20px;
    }

    #alpha_checker .input-group-prepend {
        flex-direction: column;
        align-items: stretch;
    }

    #alpha_checker .readonly-input {
        min-width: auto;
        margin-bottom: 8px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    #alpha_checker #MIG:hover {
        transform: none;
    }
    
    #alpha_checker .close-checker:hover {
        color: #6b7280;
    }
}

/* Larger screens */
@media (min-width: 1200px) {
    #alpha_checker {
        padding: 40px;
    }

    #alpha_checker div {
        margin: 32px auto;
    }
}