:root {
    --success-text-color: #0f5132;
    --success-background-color: #d1f4e0;
    --success-border-color: #a3e4c6;
    --warning-text-color: #842029;
    --warning-background-color: #f8d7da;
    --warning-border-color: #f1aeb5;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    font-family: 'Times New Roman', Times, serif;
}

.conflict {
    background-color: var(--warning-background-color);
    color: var(--warning-text-color) !important;
}

.error {
    color: var(--warning-text-color) !important;
}

.trigger-btn {
    margin: 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.2s;
}

.trigger-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.alert-message {
    font-size: 20px;
    font-weight: 600;
}

.alert-image img {
    width: 40px;
    height: 40px;
}

.alert-container.show {
    right: 20px;
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alert-content {
    padding: 24px 24px;
    height: auto;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
    min-width: 400px;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.99) 100%);
}

.AlertHeader {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.alert-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-icon::before,
.alert-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.success .alert-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.success .alert-icon::before {
    width: 12px;
    height: 6px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.warning .alert-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.warning .alert-icon::before {
    width: 2px;
    height: 8px;
    background: white;
}

.warning .alert-icon::after {
    width: 2px;
    height: 2px;
    background: white;
    top: 60%;
}

.error .alert-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.error .alert-icon::before {
    width: 10px;
    height: 2px;
    background: white;
    transform: translate(-50%, -50%) rotate(45deg);
}

.error .alert-icon::after {
    width: 10px;
    height: 2px;
    background: white;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.alert-text {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.alert-text h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alert-text p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.close-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 20px;
    color: #ef4444;
    cursor: pointer;
    padding: 6px 6px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.close-btn:hover {
    color: white;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    transform: scale(1.08) rotate(90deg);
}

.close-btn:active {
    transform: scale(0.95) rotate(90deg);
}

.alert-container .progress-bar {
    height: 3px;
    background-color: rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.alert-container .progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, currentColor 0%, currentColor 100%);
    transform-origin: left;
    animation: progress 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 480px) {
    .alert-container {
        width: calc(100% - 40px);
        max-width: 360px;
        border-radius: 14px;
        margin: 0 20px;
        right: auto;
    }

    .alert-content {
        min-width: unset;
        padding: 20px 18px;
    }

    .trigger-btn {
        width: 100%;
        margin: 5px 0;
    }
}

.alert-message-contain {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

.AlertHeader button {
    padding: 6px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    height: 30px;
    text-align: center;
    width: 30px;
    border-radius: 8px;
    color: white;
    border: 2px solid var(--warning-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    font-weight: 600;
}

.AlertHeader button:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.AlertHeader button:active {
    transform: scale(0.95) rotate(90deg);
}

.login-btns.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.login-btns.loading::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alert-type {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    align-items: center;
    position: relative;
    z-index: 1;
}

.alert-title {
    font-size: 20px;
    font-weight: 900;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.success .alert-content {
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.99) 0%, rgba(236, 253, 245, 0.99) 100%);
    border-left: 4px solid #10b981;
}

.success {
    border-left: 4px solid #10b981;
}

.warning .alert-content {
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.99) 0%, rgba(255, 245, 235, 0.99) 100%);
    border-left: 4px solid #f59e0b;
}

.warning {
    border-left: 4px solid #f59e0b;
}

/* .error .alert-content {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.99) 0%, rgba(254, 237, 237, 0.99) 100%);
    border-left: 4px solid #ef4444;
}

.conflict .alert-content {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.99) 0%, rgba(254, 237, 237, 0.99) 100%);
    border-left: 4px solid #ef4444;
} */


.alert-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 16px;
    z-index: 1;
}

.alert-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 16px;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .alert-container {
        transition: none;
        animation: none;
    }

    .close-btn:hover {
        transform: scale(1.08);
    }

    .AlertHeader button:hover {
        transform: scale(1.1);
    }
}

.alert-container:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.success .alert-icon::before {
    animation: checkmarkAnimation 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkAnimation {
    0% {
        stroke-dasharray: 50;
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dasharray: 50;
        stroke-dashoffset: 0;
    }
}

@supports (backdrop-filter: blur(20px)) {
    .alert-container {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
    }

    .alert-content {
        background: var(--warning-background-color);
    }
}

@supports not (backdrop-filter: blur(20px)) {
    .alert-container {
        background: white;
        border: 1px solid #e5e7eb;
    }

    .alert-content {
        background: white;
    }
}

.alert-container.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 16px;
}

.alert-container.warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 16px;
}

.alert-container.error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 16px;
}
