/**
 * License Expired Banner & Overlay Styles
 * Copyright © 2025 Isaiah Nyalali. All Rights Reserved.
 */

/* Dark overlay covering entire page */
.license-expired-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Banner container */
.license-expired-banner {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 48px 56px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: slideUp 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Top gradient accent */
.license-expired-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Logo section */
.license-expired-logo {
    margin-bottom: 24px;
}

.license-expired-logo img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Warning icon */
.license-expired-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.license-expired-icon i {
    font-size: 36px;
    color: #f59e0b;
}

/* Title */
.license-expired-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Subtitle/message */
.license-expired-message {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 28px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.license-expired-message strong {
    color: #1e293b;
}

/* Apology text */
.license-expired-apology {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-left: 4px solid #ef4444;
}

.license-expired-apology p {
    margin: 0;
    font-size: 14px;
    color: #7f1d1d;
    font-weight: 500;
}

/* Renew button */
.license-expired-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.4);
    font-family: 'Inter', -apple-system, sans-serif;
}

.license-expired-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.5);
    background: linear-gradient(135deg, #1a8ae6 0%, #0078d4 100%);
}

.license-expired-btn:active {
    transform: translateY(0);
}

.license-expired-btn i {
    font-size: 18px;
}

/* Support text */
.license-expired-support {
    margin-top: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.license-expired-support a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 500;
}

.license-expired-support a:hover {
    text-decoration: underline;
}

/* Disable all forms and buttons on page */
.license-page-disabled form,
.license-page-disabled button,
.license-page-disabled input,
.license-page-disabled select,
.license-page-disabled textarea,
.license-page-disabled a[href] {
    pointer-events: none !important;
    user-select: none !important;
}

/* Expiring soon warning banner (less intrusive) */
.license-expiring-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    padding: 12px 20px;
    text-align: center;
    z-index: 99999;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.license-expiring-warning i {
    font-size: 18px;
}

.license-expiring-warning a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

.license-expiring-warning .dismiss-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
}

.license-expiring-warning .dismiss-btn:hover {
    opacity: 1;
}