/*
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
*/
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    scroll-behavior: smooth;
}
:root{
    --bg: #0b1020;
    --panel: #121933;
    --panel-2: #1a2242;
    --border: rgba(255,255,255,.06);
    --text: #e8ecff;
    --muted: #94a3b8;
    --accent: #6c7cff;
    --accent-2: #3ecbff;
    --accent-3: #b56dff;
    --success: #27c281;
    --warning: #ffb84d;
    --danger: #ff6b81;
}

body{
    font-family: sans-serif !important;
    background: var(--bg) !important;
    color: var(--text) !important;
}

a {
    cursor: pointer;
    text-decoration: none !important;
    color: var(--accent);
}

a:hover,
a:focus {
    text-decoration: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

textarea {
    resize: none;
}

hr {
    margin: 10px 0px;
    color: darkgray;
}

::-moz-selection {
    color: var(--text);
    background: var(--bs-primary);
}

::selection {
    color: var(--text);
    background: var(--bs-primary);
}

::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

/*--------------------------------------------------------------
# Loader
--------------------------------------------------------------*/
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: var(--bg);
}

#loader:before {
    content: "";
    position: fixed;
    top: calc(50% - 0px);
    left: calc(50% - 30px);
    border: 6px solid var(--warning);
    border-top-color: var(--accent);
    border-bottom-color: var(--accent-2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-loader 2s linear infinite;
}

@keyframes animate-loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
*:focus {
    box-shadow: none !important;
    outline: 0px !important;
}

.navbar {
    box-shadow: 0px 3px 7px -6px rgba(0, 0, 0, 0.5);
}

.card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

.form-control,
.form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border: 1.8px solid var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0.25rem 0.05rem rgba(105, 108, 255, 0.1);
}

.dropdown-menu {
    border-radius: 4px;
    padding: 10px 0;
    -webkit-animation-name: dropdown-animate;
    animation-name: dropdown-animate;
    -webkit-animation-duration: 0.2s;
    animation-duration: 0.2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    border: 0;
    box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
    text-align: center;
    font-size: 15px;
    padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
    color: #444444;
    text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
    text-decoration: none;
}

.dropdown-menu .dropdown-divider {
    color: #a5c5fe;
    margin: 0;
}

.dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f6f9ff;
}

@media (min-width: 768px) {
    .dropdown-menu-arrow::before {
        content: "";
        width: 13px;
        height: 13px;
        background: #fff;
        position: absolute;
        top: -7px;
        right: 20px;
        transform: rotate(45deg);
        border-top: 1px solid #eaedf1;
        border-left: 1px solid #eaedf1;
    }
}

@-webkit-keyframes dropdown-animate {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

    0% {
        opacity: 0;
    }
}

@keyframes dropdown-animate {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

    0% {
        opacity: 0;
    }
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white;
}

.btn:focus-visible {
    box-shadow: none !important;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
    line-height: 1;
}

@media (min-width: 1200px) {
    .logo {
        width: 280px;
    }
}

@media only screen and (max-width: 1199px) {
    header .logo {
        display: none !important;
    }

    .header .toggle-sidebar-btn {
        padding-left: 0px;
    }
}

.header {
    transition: all 0.5s;
    z-index: 997;
    height: 60px;
    background: rgba(11,16,32,.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
    padding-left: 20px;
}

.header .toggle-sidebar-btn {
    font-size: 32px;
    padding-left: 10px;
    cursor: pointer;
    color: var(--bs-primary);
}

/*--------------------------------------------------------------
  # Header Nav
  --------------------------------------------------------------*/
.header-nav ul {
    list-style: none;
}

.header-nav > ul {
    margin: 0;
    padding: 0;
}

.header-nav .nav-icon {
    font-size: 22px;
    color: var(--bs-primary);
    margin-right: 25px;
    position: relative;
}

.header-nav .nav-profile {
    color: var(--bs-primary);
}

.header-nav .nav-profile img {
    max-height: 36px;
}

.header-nav .nav-profile span {
    font-size: 14px;
}

.header-nav .profile {
    min-width: 240px;
    padding-bottom: 0;
    top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
    font-size: 18px;
    margin-bottom: 0;
    color: var(--accent);
}

.header-nav .profile .dropdown-header span {
    font-size: 14px;
}

.header-nav .profile .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
    background-color: #f6f9ff;
}

/*--------------------------------------------------------------
  # Sidebar
  --------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    background: #0f1630;
    box-shadow: inset -1px 0 0 var(--border);
}

@media (max-width: 1199px) {
    .sidebar {
        left: -300px;
    }
}

.sidebar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/** PERSONAJE **/
#agent-3d {
    width: 100%;
    height: 380px;
    min-height: 380px;
}

.agent-canvas-placeholder {
    min-height: 380px;
}
#agent-3d canvas {
    filter: drop-shadow(0 0 12px rgba(0, 234, 255, 0.22));
}

.chart-placeholder {
    position: relative;
    min-height: 260px;
}

#activityChart {
    width: 100% !important;
    height: 260px !important;
}

/** AGENT PAGE **/
.agent-card {
    background: linear-gradient(145deg, #121933, #18224a);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    min-height: 260px;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(0, 200, 255, 0.2);

}
.badge.bg-success {
    box-shadow: 0 0 8px rgba(34,197,94,0.45);
}

.badge.bg-warning {
    box-shadow: 0 0 8px rgba(234,179,8,0.45);
}

.badge.bg-danger {
    box-shadow: 0 0 8px rgba(239,68,68,0.45);
}

.agent-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
}

.agent-card p {
    opacity: 0.7;
    font-size: 0.9rem;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}


@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.stat-card {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat-card strong {
    font-size: 1.2rem;
    display: block;
}

.agent-card a {
    text-decoration: none;
}

/** details agent**/
.fake-console {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: #e8ecff;
    min-height: 120px;
    line-height: 1.6;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.log-item small,
.timeline-item small {
    color: #94a3b8;
}

.card-status-running {
    border-left: 3px solid #22c55e;
}

.card-status-idle {
    border-left: 3px solid #facc15;
}

.card-status-error {
    border-left: 3px solid #ef4444;
}

@media (min-width: 1200px) {
    #main,
    #footer {
        margin-left: 300px;
    }
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {
    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -300px;
    }
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav hr {
    margin: 10px;
}

.sidebar-nav li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
    font-size: 12px;
    text-transform: uppercase;
    color: dimgray;
    padding: 15px 0 10px 15px;
    margin: 15px 0px;
    font-weight: 500;
    background: var(--panel);
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    letter-spacing: 0.2px;
    font-size: 14px;
    border-left: none;
    transition: 0.3;
    padding: 10px 15px;
    color: var(--muted);
    background: transparent;
    border-radius: 12px;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    margin-right: 10px;
    color: var(--muted);
}

.sidebar-nav .nav-link.active {
    color: var(--text);
    border: 1px solid rgba(108,124,255,.4);
    background: linear-gradient(90deg, rgba(108,124,255,.16), rgba(62,203,255,.08));
}

.sidebar-nav .nav-link.active i {
    color: var(--accent-2);
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,.03);
    color: var(--text);
}

.sidebar-nav .nav-link:hover i {
    color: var(--bs-primary);
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
    margin-top: 60px;
    padding: 20px 10px;
    transition: all 0.3s;
}

@media (max-width: 1199px) {
    #main {
        padding: 20px;
    }
}

/* ===== TEXTOS DASHBOARD ===== */

body,
#main,
#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6,
#main p,
#main span,
#main small,
#main strong,
#main li,
.card,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.card p,
.card span,
.card small,
.sidebar,
.sidebar .nav-link,
.header,
.header .nav-link,
.header .nav-profile{
    color: var(--text) !important;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
.dash-overview .card{
    border-bottom: 0;
    padding: 20px;
}

.dash-overview .card h1{
    color: var(--text);
    font-size: 2rem;
}

.dash-overview .card p{
    color: var(--text);
}


.table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,0.03);
    --bs-table-border-color: rgba(255,255,255,0.05);
    --bs-table-color: #e8ecff;
    color: #e8ecff;
}

.table thead th {
    color: #94a3b8;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 500;
    border-bottom-color: rgba(255,255,255,0.08) !important;
    background: transparent !important;
}

.table td,
.table th {
    background: transparent !important;
    border-color: rgba(255,255,255,0.05);
}

.table tbody tr:hover td {
    background: rgba(255,255,255,0.03) !important;
}