﻿/* =========================
   GLOBAL
========================= */

body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

/* CONTENIDO */

.body-content {
    padding: 40px;
    min-height: 100vh;
}

/* =========================
   ALERTAS
========================= */

.alert-success {
    background-color: #16C47F;
    color: #000;
    border: none;
}

.alert-warning {
    background-color: #FFD65A;
    color: #000;
    border: none;
}

.alert-danger {
    background-color: #F93827;
    color: white;
    border: none;
}

.fade-out {
    opacity: 0 !important;
    transition: opacity 1s ease;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background-color: #1f1f1f !important;
    border-bottom: 1px solid #2a2a2a;
}

.navbar-brand {
    color: #f5a623 !important;
    font-weight: 700;
}

.nav-link {
    color: #cccccc !important;
    transition: 0.2s;
}

    .nav-link:hover {
        color: #f5a623 !important;
    }

/* =========================
   ENCABEZADO DE LISTAS
========================= */

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 20px;
}

.list-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.list-icon {
    font-size: 28px;
}

.list-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.list-title small {
    color: #888;
    font-size: 14px;
}

/* =========================
   BUSCADOR
========================= */

.search-box {
    width: 55%;
}

/* =========================
   BOTONES
========================= */

/* Botón Agregar */

.list-btn-add {
    background-color: #f5a623;
    color: #000;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

    .list-btn-add:hover {
        background-color: #e09510;
    }

/* Botón Cancelar */

.list-btn-cancel {
    background-color: #1e1e1e;
    color: #FFF;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

    .list-btn-cancel:hover {
        background-color: #8a1616;
    }

/* Botones de Icono */

.btn-icon {
    background-color: #2a2a2a;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-icon:hover {
        background-color: #3a3a3a;
    }

.btn-delete:hover {
    background-color: #4b1f1f;
}

.btn-update:hover {
    background-color: #08480a;
}

/* =========================
   TABLAS
========================= */

.list-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
    border-radius: 14px;
    overflow: hidden;
}

    .list-table thead {
        background-color: #202020;
    }

    .list-table th {
        text-align: left;
        padding: 18px;
        color: #9ca3af;
        font-size: 14px;
        font-weight: 600;
        border-bottom: 1px solid #2a2a2a;
    }

    .list-table td {
        padding: 18px;
        border-bottom: 1px solid #2a2a2a;
    }

    .list-table tr:hover {
        background-color: #252525;
    }

    .list-table th:last-child,
    .list-table td:last-child {
        width: 140px;
    }

/* =========================
   DATOS DE TABLA
========================= */

.list-primary {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.list-secondary {
    color: #9ca3af;
    font-size: 15px;
}

/* =========================
   ACCIONES
========================= */

.list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   TARJETAS DE LISTADO (MOBILE)
========================= */

.list-card {
    background-color: #1e1e1e;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
}

.list-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* =========================
   DASHBOARD CARDS
========================= */

.card {
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    border-radius: 12px;
}

    .card:hover {
        background-color: #252525;
        transition: 0.2s;
    }

.card-title {
    color: #888;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.dashboard-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    /* color: #f5a623; */
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-card-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

    .dashboard-card-icon svg {
        width: 24px;
        height: 24px;
    }

/* =========================
   COLORES DE ICONOS
========================= */

.icon-primary {
    color: #fcc419;
}

.icon-warning {
    color: #f60808;
}

.icon-success {
    color: #0aff00;
}

.icon-blue {
    color: #0097fd;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .body-content {
        padding: 20px;
    }

    .list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .list-btn-add {
        width: 100%;
    }

    .list-btn-cancel {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }
}
/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.login-container {
    width: 1400px;
    max-width: 95%;
    min-height: 850px;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    background-color: #1e1e1e;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .5);
}

/* =========================
   PANEL IZQUIERDO
========================= */

.login-brand {
    width: 40%;
    position: relative;
    background-image: url('../Img/login-bg.jpg');
    background-size: cover;
    background-position: center;
}

    .login-brand::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .75);
    }

.login-brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand h1 {
    color: #f5a623;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.login-brand p {
    color: #9ca3af;
    font-size: 1.1rem;
    line-height: 1.8;
}

.login-features {
    margin-top: 40px;
}

.login-feature {
    color: #ffffff;
    margin-bottom: 18px;
    font-size: 1rem;
}

/* =========================
   PANEL DERECHO
========================= */

.login-form-container {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background-color: #1a1a1a;
}

.login-card {
    width: 100%;
    max-width: 600px;
    background-color: transparent;
    border: none;
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

    .login-logo svg {
        width: 60px;
        height: 60px;
        color: #f5a623;
    }

.login-card h2 {
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffffff;
}

.login-card small {
    display: block;
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

.login-card label {
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-card .form-control {
    background-color: #121212;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    padding: 12px;
}

    .login-card .form-control:focus {
        background-color: #121212;
        border-color: #f5a623;
        color: #ffffff;
        box-shadow: 0 0 0 .2rem rgba(245, 166, 35, .15);
    }

.login-btn {
    width: 100%;
    background-color: #f5a623;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    transition: .2s;
}

    .login-btn:hover {
        background-color: #e09510;
    }

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .login-page {
        padding: 20px;
    }

    .login-container {
        width: 100%;
        min-height: auto;
    }

    .login-brand {
        display: none;
    }

    .login-form-container {
        width: 100%;
        padding: 40px 25px;
    }

    .login-card {
        max-width: 100%;
    }
}