:root {
    --vino: #4B1C27;
    --gris-plomo: #2e2e2e;
    --humo: #f5f5f5;
    --carbon: #1a1a1a;
    --rojo-oscuro: #6e0b14;
}

/* Splash */
.splash-screen {
    background-color: var(--carbon);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.animated-logo {
    width: 250px;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Sidebar */
.sidebar {
    max-width: 260px;
    width: 100%;
    background-color: var(--gris-plomo);
    color: var(--humo);
    min-height: 100vh;
    overflow-x: hidden;
}

.sidebar h4 {
    color: var(--vino);
    margin-bottom: 20px;
}

.sidebar .nav-item {
    margin-bottom: 15px;
    font-weight: bold;
    cursor: pointer;
}

.sidebar .nav-item ul {
    padding-left: 15px;
    font-weight: normal;
}

.sidebar .nav-item:hover {
    color: var(--rojo-oscuro);
}

/* Login */
.login-container {
    background-color: var(--carbon);
    color: var(--humo);
    padding: 30px;
    border-radius: 10px;
    max-width: 100%;
    width: 100%;
    margin: 100px auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.login-container input[type="text"],
.login-container input[type="password"] {
    background-color: #333;
    border: 1px solid var(--vino);
    color: var(--humo);
    padding: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.login-container button {
    background-color: var(--vino);
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
}

.login-container button:hover {
    background-color: var(--rojo-oscuro);
}

/* General */
body {
    background-color: var(--carbon);
    color: var(--humo);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.login-wrapper {
    background-color: #1b1b1b;
}

.login-box {
    background-color: #2c2c2c;
    max-width: 100%;
    width: 100%;
}

.login-box input {
    background-color: #333;
    border: 1px solid #555;
    color: #eee;
}

.login-box input::placeholder {
    color: #aaa;
}

.login-box .btn {
    background-color: #8e2344;
    border: none;
}

/* Tablas */
.table {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    table-layout: auto;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
}

.table thead {
    background-color: #a30000 !important;
}

.table thead th {
    background-color: #a30000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border-bottom: 2px solid #8a0000 !important;
}

.table tbody tr:nth-child(odd) {
    background-color: #2b2b2b;
}

.table tbody td {
    color: #e6e6e6;
    font-size: 0.85rem;
}

.table tbody tr:hover {
    background-color: #3a3a3a;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.table thead th:hover {
    text-shadow: 0 0 6px rgba(255, 100, 100, 0.6);
    cursor: default;
}

/* Botones */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Gráficos ApexCharts */
#grafico, .chart-box, .tooltip-grafica {

    color: #000000 !important;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    height: auto;
}

.apexcharts-canvas, .apexcharts-svg {
    color: #000000 !important;
    max-width: 100% !important;
    height: auto !important;
}

main.flex-fill {
    min-width: 0 !important;
    overflow-x: hidden !important;
}
