:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    /* Changed to purple/indigo for button */
    --accent-hover: #4f46e5;
    --valid-bg: rgba(34, 197, 94, 0.15);
    --valid-border: rgba(34, 197, 94, 0.4);
    --valid-text: #4ade80;
    --invalid-bg: rgba(239, 68, 68, 0.15);
    --invalid-border: rgba(239, 68, 68, 0.4);
    --invalid-text: #f87171;
    --error-bg: rgba(234, 179, 8, 0.15);
    --error-border: rgba(234, 179, 8, 0.4);
    --error-text: #facc15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.global-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.main-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.icon-wrapper {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-color);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.main-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 90%;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.card-header {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.clean-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verify-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.1em;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

input::placeholder {
    color: rgba(148, 163, 184, 0.4);
    font-size: 0.9rem;
    letter-spacing: normal;
}

.btn-verify {
    width: 100%;
    background: var(--accent-color);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px -1px rgba(99, 102, 241, 0.4);
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(99, 102, 241, 0.5);
}

.btn-verify:active {
    transform: translateY(0);
}

.result-area {
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.result-area.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.alert-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    display: none;
}

.result-area.status-inhabilitado {
    background: var(--invalid-bg);
    border: 1px solid var(--invalid-border);
    color: var(--invalid-text);
}

.result-area.status-alerta-generica {
    background: rgba(249, 115, 22, 0.15);
    /* Orange bg */
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fb923c;
    /* Orange text */
}

.result-area.status-valido {
    background: var(--valid-bg);
    border: 1px solid var(--valid-border);
    color: var(--valid-text);
}

.result-area.status-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.main-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.developer-credit {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.disclaimer {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.7);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/* Animations */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}