:root {
    --primary-color: #6DDCBD;
    --secondary-color: #e0e0e0;
    --accent-color: #92e6d0;
    --border-color: #444444;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --header-bg: #121212;
    --text-color: #e0e0e0;
    --text-muted: #aaaaaa;
    --input-bg: #2a2a2a;
    --input-text: #ffffff;
    --input-border: #444444;
    --btn-primary-bg: #092e20;
    --btn-primary-text: #6DDCBD;
    --btn-hover-bg: #124230;
    --alert-danger-bg: #3d1a1a;
    --alert-danger-text: #ff6b6b;
    --alert-info-bg: #1a2b3d;
    --alert-info-text: #6bb3ff;
    --alert-success-bg: #1a3d2a;
    --alert-success-text: #6bff8d;
}

html {
    line-height: 1.15;
}

body {
    margin: 0 auto;
    max-width: 960px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    position: relative;
    padding-bottom: 140px;
}

main {
    flex: 1;
    text-align: center;
    padding: 20px;
}

/* Footer Styles */
footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 25px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border-color);
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.option {
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 10px;
    text-decoration: none;
    padding: 0 15px;
    max-width: 260px;
    width: 100%;
}

.option svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: 100%;
}

.option__heading {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 400;
    text-align: left;
}

.option p {
    font-weight: 300;
    line-height: 1.25;
    color: var(--text-color);
    text-align: left;
    margin: 0;
}

@media (max-width: 800px) {
    footer {
        flex-direction: column;
        align-items: center;
        padding: 25px;
        gap: 1.5rem;
    }

    .option {
        max-width: 100%;
    }
}

/* Accessibility */
.sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Welcome Screen */
.welcome-message {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    text-align: justify-all;
}

.welcome-message .label {
    font-weight: 430;
    font-size: 36px;
    color: var(--primary-color);
    font-family: "Dancing Script", cursive;
    font-style: normal;
}

/* Auth Forms */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-form h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.form-control, .form-control:focus, .form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(109, 220, 189, 0.25);
}

.form-check-input {
    background-color: var(--input-bg);
    border-color: var(--input-border);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-text {
    color: var(--text-muted);
}

.form-select option {
    background-color: var(--input-bg);
    color: var(--input-text);
}

/* Estilos para select múltiple */
select[multiple] {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: var(--input-border);
}

select[multiple] option {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

select[multiple] option:hover {
    background-color: rgba(109, 220, 189, 0.1);
}

select[multiple]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(109, 220, 189, 0.25);
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    border-color: var(--primary-color);
    color: var(--btn-primary-text);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--btn-hover-bg);
    border-color: var(--accent-color);
}

.account-details {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.account-details h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.account-info {
    margin-bottom: 30px;
}

.account-info p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-info .label {
    font-weight: 600;
    color: var(--primary-color);
}

/* Card styling */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom-color: var(--border-color);
}

/* Alert styling */
.alert-danger {
    background-color: var(--alert-danger-bg);
    color: var(--alert-danger-text);
    border-color: rgba(255, 107, 107, 0.3);
}

.alert-info {
    background-color: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-color: rgba(107, 179, 255, 0.3);
}

.alert-success {
    background-color: var(--alert-success-bg);
    color: var(--alert-success-text);
    border-color: rgba(107, 255, 141, 0.3);
}

/* Servicedesk styles */
.bg-light {
    background-color: var(--card-bg) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Table styling for dark mode */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-color) !important;
    color: var(--text-color) !important;
}

.table thead,
.table thead tr,
.table thead th {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.table tbody tr td {
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

.table-hover tbody tr:hover {
    --bs-table-hover-bg: rgba(109, 220, 189, 0.1) !important;
    background-color: rgba(109, 220, 189, 0.1) !important;
    color: var(--text-color) !important;
}

.list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.list-group-item-action:hover {
    background-color: rgba(109, 220, 189, 0.1);
    color: var(--text-color);
}

.list-group-item-action:focus {
    background-color: rgba(109, 220, 189, 0.2);
    color: var(--text-color);
}

/* Rocket Animation */
.figure {
    margin: 10vh auto 0;
    max-width: 265px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.exhaust__line {
    animation: thrust 70ms infinite ease-in-out alternate;
    transform-box: fill-box;
}

.smoke {
    animation: smoke 100ms infinite ease-in-out alternate;
    transform-origin: center;
}

.flame {
    animation: burnInner2 100ms infinite ease-in-out alternate;
    transform-box: fill-box;
}

@keyframes smoke {
    0% {
        transform: translate3d(-5px, 0, 0);
    }
    100% {
        transform: translate3d(5px, 0, 0);
    }
}

@keyframes burnInner2 {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(0, 3px, 0);
    }
}

@keyframes thrust {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Image Card */
.image-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.image-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    filter: brightness(0.7); /* Darkens the background images */
}

.image-card.welcome::before {
    background-image: inherit;
}

@media (max-width: 768px) {
    .image-card {
        background-attachment: scroll;
    }
}

.image-card.welcome {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.image-card .logo {
    margin-bottom: 15px;
    width: 100px;
}

.image-card .welcome-title {
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: normal;
}

.image-card .header-content {
    padding: 15px;
}

.image-card h4 {
    color: white;
    margin: 0;
}

.image-card .subtitle {
    color: white;
    margin-top: 5px;
    font-size: 14px;
}

/* Motivational message overlay */
.motivational-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 33.33%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.motivational-text {
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 0, 0, 0.6),
        1px 1px 2px rgba(0, 0, 0, 0.9);
    padding: 15px;
    max-width: 90%;
}