.hidden {
    display: none;
}

.chart-container {
    position: relative;
}

.chart-container-40 {
    height: 40vh;
}

.chart-container-30 {
    height: 30vh;
}

.chart-container-h300 {
    height: 300px;
}

.chart-container-h400 {
    height: 400px;
}

.input-group-narrow {
    max-width: 400px;
}

.table-scroll {
    overflow-x: auto;
}

.refresh-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.accordion-button.ticket-highlight {
    background-color: var(--bs-warning-bg-subtle, #fff3cd) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.35);
}

body {
    margin: 0;
    padding: 0;
    background-image: url('/static/images/fondo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: white;
}

body:not(.login-page) .logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

body:not(.login-page) .logo img {
    width: 150px;
    opacity: 0.95;
}

.container {
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 220px);
    align-items: center;
    justify-content: space-between;
    padding: 0 100px 60px;
    gap: 2rem;
}

.login-page .container {
    padding: 0 clamp(2.5rem, 6vw, 7rem) 4rem;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.left-section {
    width: 50%;
}

.left-section h1 {
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.right-section {
    width: 40%;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.right-section h2 {
    margin-bottom: 30px;
    font-size: 1.8em;
}

.input-group {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 0 10px;
    transition: 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.4);
}

.input-group .icon {
    font-size: 1.2em;
    margin-right: 10px;
    color: #555;
}

.input-group input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 12px 5px;
    font-size: 1em;
    color: #333;
}

.input-group input:focus {
    outline: none;
}

form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

form input[type="submit"]:hover {
    background-color: #cc5200;
}

.footer-text {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
    color: #ddd;
}

@media (min-width: 992px) {
    body.login-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .login-page .logo-wrapper {
        width: 100%;
        justify-content: flex-start;
        padding: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 7rem) 1rem;
    }

    .login-page .logo {
        justify-content: flex-start;
        align-items: flex-end;
        gap: clamp(1.5rem, 4vw, 3rem);
        margin: 0;
    }

    .login-page .container {
        margin-top: -0.5rem;
        align-items: flex-start;
    }

    .login-page .left-section {
        width: 48%;
    }

    .login-page .right-section {
        width: 36%;
        max-width: 420px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 60px;
    }

    .left-section h1 {
        font-size: 2.6em;
    }

    .right-section {
        width: 45%;
        padding: 32px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 40px;
    }

    .left-section {
        width: 55%;
    }

    .right-section {
        width: 42%;
        padding: 28px;
    }

    .left-section h1 {
        font-size: 2.3em;
    }

    .right-section h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    body {
        min-height: 100vh;
        padding-bottom: 2.5rem;
    }

    .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
        min-height: auto;
    }

    .left-section,
    .right-section {
        width: 100%;
        text-align: center;
    }

    .right-section {
        padding: 1.75rem 1.5rem;
        background-color: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .left-section h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .right-section h2 {
        margin-bottom: 1.75rem;
    }

    .input-group {
        padding: 0 0.75rem;
    }

    .input-group .icon {
        font-size: 1.1em;
    }

    .input-group input {
        font-size: 0.95em;
    }

    form input[type="submit"] {
        font-size: 1em;
        padding: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem 2.5rem;
    }

    .left-section h1 {
        font-size: 1.7rem;
    }

    .right-section {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .input-group {
        margin-bottom: 0.9rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }
}
