@tailwind base;
@tailwind components;
@tailwind utilities;

/* =========================================================
   ESTILO GENERAL DEL SISTEMA
   ========================================================= */

body {
    color: #1f2937;
}

.content-wrapper {
    background:
        radial-gradient(circle at top left, rgba(132, 204, 22, 0.08), transparent 28%),
        linear-gradient(135deg, #0b1118, #111827 55%, #090d13) !important;
}

.card {
    border-radius: 10px;
}

.card-header {
    background: #ffffff;
    color: #1f2937;
    font-weight: 600;
}

.table th,
.table td {
    vertical-align: middle !important;
    color: #1f2937 !important;
}

.btn {
    font-weight: 600;
}

.btn-primary,
.btn-info,
.btn-danger,
.btn-success {
    color: #ffffff !important;
}

.btn-warning {
    color: #212529 !important;
}

.badge-primary,
.badge-info,
.badge-warning,
.badge-danger,
.badge-success {
    color: #ffffff !important;
}

.small-box .inner h3,
.small-box .inner p {
    color: #ffffff !important;
}

.card-title,
.content-header h1 {
    color: #1f2937 !important;
}

/* =========================================================
   SIDEBAR ADMINLTE - ESTILO WARGAME
   ========================================================= */

.main-sidebar {
    background:
        linear-gradient(180deg, #111827, #1f2933 45%, #111827) !important;
    border-right: 1px solid rgba(163, 230, 53, 0.18) !important;
}

/* Caja superior donde aparece el logo */
.main-sidebar .brand-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 64px !important;
    padding: 10px 12px !important;
    background:
        linear-gradient(135deg, #111827, #1f2933) !important;
    border-bottom: 1px solid rgba(163, 230, 53, 0.28) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* Imagen del logo superior izquierdo */
.main-sidebar .brand-link .brand-image {
    width: 42px !important;
    height: 42px !important;
    max-height: 42px !important;
    min-height: 42px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin-left: 0 !important;
    margin-right: 8px !important;
    opacity: 1 !important;
    background: transparent !important;
    border-radius: 50% !important;
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.25) !important;
}

/* Texto CALCOS WEB / WARGAME */
.main-sidebar .brand-link .brand-text {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
}

/* Enlaces del menú */
.main-sidebar .nav-link {
    color: #d1d5db !important;
    border-radius: 7px !important;
    margin: 3px 8px !important;
    transition: all 0.2s ease-in-out !important;
}

.main-sidebar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(132, 204, 22, 0.12) !important;
}

/* Enlace activo */
.main-sidebar .nav-link.active {
    color: #ffffff !important;
    background:
        linear-gradient(135deg, #2563eb, #0f172a) !important;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.35) !important;
}

.main-sidebar .nav-icon {
    color: #e5e7eb !important;
}

.main-sidebar .nav-link.active .nav-icon {
    color: #ffffff !important;
}

/* Separación del menú */
.sidebar {
    padding-top: 10px !important;
}

/* =========================================================
   TOPBAR ADMINLTE
   ========================================================= */

.main-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.main-header .nav-link {
    color: #374151 !important;
}

/* =========================================================
   AJUSTE PARA LOGO CUANDO EL SIDEBAR SE CONTRAE
   ========================================================= */

.sidebar-collapse .main-sidebar .brand-link .brand-image {
    width: 38px !important;
    height: 38px !important;
    max-height: 38px !important;
    margin-left: 2px !important;
}

.sidebar-collapse .main-sidebar .brand-link .brand-text {
    display: none !important;
}
