@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #1E1E2F;
    --secondary-color: #2C2C3A;
    --accent-color: #4B6587;
    --highlight-color: #8D93AB;
    --primary-gradient: linear-gradient(45deg, #00ff88, #7c3aed);
    --secondary-gradient: linear-gradient(45deg, #3b82f6, #10b981);
    --svg-offset: -0.27em;
    --svg-margin-left: -0.2em;
    --svg-margin-right: -0.35em;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    flex-shrink: 0;
}

body {
    background-color: var(--primary-color);
    color: #E0E6F0;
    margin: 0;
    font-family: 'Inter', sans-serif !important;
}

@keyframes brighten-shadow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
}

.title-brighten {
    animation: brighten-shadow 4s infinite ease-in-out !important;
}

.header-gradient {
    background: linear-gradient(to right, #2C2C3A, #1E1E2F);
}

.feature-card {
    background: var(--secondary-color);
    transition: all 0.3s ease;
    border: 1px solid #333;
    will-change: transform;
}

.feature-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.card {
    background: var(--secondary-color);
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 0.75rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    will-change: transform, box-shadow;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bg-gradient {
    background: var(--primary-gradient);
}

.gradient-text {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient2-text {
    background: linear-gradient(90deg, #17330d, #246804);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-shadow {
    filter: drop-shadow(0 4px 6px rgba(255, 255, 255, 0.2));
}

.floating-element {
    animation: float 4s ease-in-out infinite;
}

.btn-primary {
    background: linear-gradient(90deg, #3A4E77, #1F4068);
    color: white;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1F4068, #3A4E77);
}

.performance-snapshot {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.performance-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.animate__animated {
    animation-duration: 0.5s;
}

.btn-logout {
    background: linear-gradient(90deg, #8B0000, #6B0000) !important;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 100px;
    height: 100%;
    line-height: normal;
}

.btn-logout:hover {
    background: linear-gradient(90deg, #6B0000, #8B0000) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    #mobile-dropdown a {
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s, transform 0.3s;
    }

    #mobile-dropdown.flex a {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-dropdown a:nth-child(1) { transition-delay: 0.1s; }
    #mobile-dropdown a:nth-child(2) { transition-delay: 0.2s; }
    #mobile-dropdown a:nth-child(3) { transition-delay: 0.3s; }
    #mobile-dropdown a:nth-child(4) { transition-delay: 0.4s; }
    #mobile-dropdown a:nth-child(5) { transition-delay: 0.5s; }
}

.beta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.75rem;
}

.beta-badge {
    background: #DC2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    text-transform: uppercase;
}

.most-popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #00ff88 0%, #7c3aed 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
}

.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.plan-button {
    margin-top: auto;
}

.gradient-text3 {
    font-size: 40px;
    font-weight: bold;
    background: linear-gradient(135deg, #FFFFFF, #FFFFFF);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.svg-container {
    display: inline-block;
    vertical-align: middle;
    margin-left: var(--svg-margin-left);
    margin-right: var(--svg-margin-right);
    transform: translateY(var(--svg-offset));
    height: 1em;
}

svg {
    fill: url(#gradient);
    height: 1.15em;
    width: auto;
}

.svg-glow {
    filter: drop-shadow(0 0 10px rgba(66, 66, 148, 0.5));
}

.netlify-identity-widget {
    z-index: 9999 !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    pointer-events: auto !important;
}

/* Ensure modal close button and interactive elements work properly */
.netlify-identity-widget button,
.netlify-identity-widget a,
.netlify-identity-widget input,
.netlify-identity-widget select,
.netlify-identity-widget textarea {
    pointer-events: auto !important;
    z-index: 10000 !important;
}

/* Specific styling for the close button */
.netlify-identity-modal-close {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10001 !important;
}

/* Ensure modal backdrop doesn't interfere */
.netlify-identity-widget::before {
    pointer-events: auto !important;
}
