/* Root styles and variables */
:root {
    --primary: #3b82f6;
    --primary-dim: #1d4ed8;
    --background-dark: #050505;
    --surface-dark: #0e0e0e;
    --surface-highlight: #121212;
    --surface-border: #1f1f1f;
    --terminal-green: #22c55e;
    --terminal-text: #e5e5e5;
    --text-gray-200: #e5e5e5;
    --text-gray-300: #d1d5db;
    --text-gray-400: #9ca3af;
    --text-gray-500: #6b7280;
    --text-gray-600: #4b5563;
    --text-gray-700: #374151;
    --shadow-black-50: rgba(0, 0, 0, 0.5);
}

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-dark);
    color: var(--terminal-text);
    font-family: "Space Mono", monospace;
    font-size: 16px;
    min-height: max(884px, 100dvh);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bg-main {
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-box {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.bg-main {
    min-height: 100dvh;
    background-color: var(--background-dark);


    @media (min-width: 575px) {
        border: 1px solid var(--surface-border);
        max-width: 450px;
    }
}

.bg-item {
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background-size: 100% 100%, cover; /* El primero para el gradiente, el segundo para la imagen */
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
}

.bg-item-data {
    background-color: var(--surface-dark);
    border: 1px solid var(--surface-border);
    border-radius: 10px;

}

.img-box-item {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 7px;
    border: 1px solid var(--surface-border);
}

.target {
    position: absolute;
    bottom: -13px;
    right: -13px;
    width: 47px;

    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.7));
    animation: targetGlow 1.5s infinite ease-in-out;
}

.img-data {
    width: 35px;
    height: 35px;
    object-fit: cover;
    object-position: center;
    border-radius: 7px;
    border: 1px solid var(--surface-border);
}

.flex-break {
    flex-basis: 100%;
    height: 0;
}

@keyframes targetGlow {
    0% {
        filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.3));
        opacity: 0.6;
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 0, 0, 1));
        opacity: 1;
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.3));
        opacity: 0.6;
    }
}

.small {
    font-size: 12px;
}

.border-right {
    border-right: 1px solid var(--surface-border);
}

.border-bot {
    border-bottom: 1px solid var(--surface-border);
}

.h5 {
    font-size: 1.1rem;
}

.bottom-nav {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 20;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
}

.nav-item {
    color: var(--text-gray-400);
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    padding-bottom: 0.5rem !important;
}

.nav-item:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item span:first-child {
    font-size: 25px;
}

.nav-label {
    font-size: 11px;
    font-family: "Space Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.nav-item-dropdown {
    position: relative;
}

.dropdown-menu-up {
    bottom: 100%;
    top: auto;
    margin-bottom: 0.5rem;
}

.dropdown-menu {
    background-color: var(--surface-dark) !important;
    border: 1px solid var(--surface-border) !important;
}

.dropdown-divider {
    border-top: 1px solid var(--surface-border) !important;
}

.dropdown-item {
    font-size: 15px;
    color: var(--text-gray-400);
    font-family: "Space Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background-color: var(--surface-dark);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dropdown-item:hover {
    background-color: var(--surface-highlight);
    color: var(--primary);
}

.login .form-control{
    background-color: black;
    border-color: #272727;
    border-radius: 5px;
    padding: 10px 10px;
    color: gray;
}

/* Loader Overlay Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-overlay .spinner-border {
    width: 50px;
    height: 50px;
}

/* Bottom Menu Button Container */
.bottom-nav-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 20;
    background: transparent;
    width: 100%;
}

/* Bottom Menu Button */
.btn-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-gray-400);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: inherit;
    font-family: "Space Mono", monospace;
    pointer-events: auto;
}

.btn-nav-menu:hover {
    color: var(--primary);
    background-color: rgba(5, 5, 5, 1);
    border-color: var(--primary);
}

.btn-nav-menu span:first-child {
    font-size: 25px;
}

/* Offcanvas Styles */
.offcanvas {
    background-color: var(--background-dark) !important;
    border-right: 1px solid var(--surface-border) !important;
    width: 100% !important;
    max-width: 250px !important;
}

.offcanvas-header {
    background-color: var(--surface-dark);
    border-bottom: 1px solid var(--surface-border);
    padding: 1.5rem !important;
}

.offcanvas-title {
    color: var(--terminal-text);
    font-family: "Space Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 1rem;
}

.btn-close-white {
    filter: invert(1) brightness(0.9);
}

.nav-offcanvas-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}

.nav-offcanvas-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0rem 1.5rem;
    color: var(--text-gray-400);
    text-decoration: none;
    border: none;
    border-bottom: 1px solid var(--surface-border);
    transition: all 0.3s ease;
    font-family: "Space Mono", monospace;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 500;
    min-height: 48px;
    gap: 10px;
}

.nav-offcanvas-item span:first-child {
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-offcanvas-item:last-child {
    border-bottom: none;
}

.nav-offcanvas-item:hover {
    background-color: var(--surface-dark);
    color: var(--primary);
}

.nav-offcanvas-item:hover span:first-child {
    color: var(--primary);
}

.nav-offcanvas-item.text-danger {
    color: #dc3545;
}

.nav-offcanvas-item.text-danger:hover {
    color: #ff6b6b;
    background-color: rgba(220, 53, 69, 0.1);
}

.nav-divider {
    border-top: 1px solid var(--surface-border);
    margin: 0;
}
