/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Cores modo escuro */
:root {
    --navy: #1e3a5f;
    --navy-dark: #152a42;
    --navy-darker: #0f1a2e;
    --cyan: #4dd0e1;
    --text: #ffffff;
    --text-light: #cbd5e1;
    --text-lighter: #94a3b8;
    --background: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background);
    color: var(--text);
}

header {
    background-color: var(--navy);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.sidebar-logo {
    height: 55px;
    width: auto;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.container {
    max-width: 500px;
    width: 100%;
}

.error-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background-color: var(--navy-dark);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon svg {
    width: 40px;
    height: 40px;
    color: var(--cyan);
}

.error-code {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cyan);
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.error-message {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--cyan);
    color: var(--navy);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #36c1fa;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.btn-secondary:hover {
    background-color: rgba(77, 208, 225, 0.1);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.contact-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-title {
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.contact-email {
    color: var(--cyan);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #88ffff;
}

.contact-email svg {
    width: 14px;
    height: 14px;
}

.request-id {
    color: var(--text-lighter);
    font-size: 0.8rem;
}

footer {
    background-color: var(--navy-darker);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
}

footer p {
    color: var(--text-lighter);
    font-size: 0.8rem;
}

footer a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #88ffff;
}

@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        min-width: 160px;
    }

    .contact-info {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .error-card {
        padding: 2rem 1.5rem;
    }

    .error-code {
        font-size: 3rem;
    }

    .error-title {
        font-size: 1.25rem;
    }

    .sidebar-logo {
        height: 35px;
    }

    header {
        padding: 0.75rem 1rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@supports (padding: max(0px)) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    header {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}