@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-solid: #16161a;
    --accent-primary: #e61919;
    --accent-secondary: #1976e6;
    --text-main: #ffffff;
    --text-muted: #d0d0d0;
    /* Greener/lighter than before */
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main) !important;
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Font size utilities */
.x-small {
    font-size: 0.72rem !important;
}

.extra-small {
    font-size: 0.6rem !important;
}


/* Global Dark Text Overrides */
.text-dark,
.text-black,
.text-muted {
    color: var(--text-muted) !important;
}

.fw-bold,
b,
strong,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main) !important;
    text-transform: uppercase;
}


.alert-success {
    color: #00ff88 !important;
    border-color: rgba(0, 255, 136, 0.2) !important;
}

.bg-success {
    background-color: #00c853 !important;
    color: #000 !important;
}

.dropdown-item {
    color: var(--text-muted) !important;
}

.dropdown-item:hover {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.05);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

h1,
.h1 {
    font-size: 1.625rem;
}

h2,
.h2 {
    font-size: 1.3rem;
}

h3,
.h3 {
    font-size: 1.15rem;
}

h4,
.h4 {
    font-size: 1rem;
}

h5,
.h5 {
    font-size: 0.85rem;
}

h6,
.h6 {
    font-size: 0.75rem;
}

.display-5 {
    font-size: 1.95rem;
}

.display-4 {
    font-size: 2.25rem;
}

.fighter-name,
.fighter-card-wrapper .fw-bold,
#current-list .fw-bold,
#available-list .fw-bold,
#marcas-container .fw-bold {
    font-size: 0.9rem !important;
    text-transform: uppercase;
}


/* Glassmorphism Classes */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--accent-primary), #b31212);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-premium:hover {
    box-shadow: 0 0 15px rgba(230, 25, 25, 0.5);
    filter: brightness(1.2);
    transform: scale(1.02);
}

.btn-secondary-premium {
    background: var(--surface);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-secondary-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Navbar */
.navbar-nav {
    align-items: center;
}

.navbar-custom {
    background: rgba(10, 10, 12, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.85rem;
    /* 15% reduction */
    transition: color 0.3s ease;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
}

/* Forms */
.form-control-premium {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    border-radius: 10px !important;
}

.form-control-premium:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 10px rgba(25, 118, 230, 0.3) !important;
    border-color: var(--accent-secondary) !important;
}

.form-control-premium::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1;
}

select.form-control-premium option {
    background-color: var(--surface-solid);
    color: white;
}

/* Badge System */
.badge-premium,
.badge.bg-info,
.badge.bg-warning,
.badge.bg-success {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-dark) !important;
}

/* Brackets Styles */
.bracket-container {
    display: flex;
    overflow-x: auto;
    padding: 40px 0;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0 40px;
    min-width: 250px;
}

.bracket-match {
    background: var(--surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin: 20px 0;
    position: relative;
    box-shadow: var(--card-shadow);
}

.bracket-match::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--glass-border);
}

.match-player {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.match-player:first-child {
    border-bottom: 1px solid var(--glass-border);
}

.match-player:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Modal and Popups solid background */
.modal-content.glass-card,
.dropdown-menu.glass-card {
    background: rgba(22, 22, 26, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.match-player.winner {
    background: rgba(25, 118, 230, 0.1);
    color: var(--accent-secondary);
    font-weight: bold;
}

.transition-hover {
    transition: all 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08) !important;
}

/* User Avatar and Dropdown */
.avatar-circle {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(230, 25, 25, 0.3);
    transition: all 0.3s ease;
}

.nav-item:hover .avatar-circle {
    box-shadow: 0 0 15px rgba(230, 25, 25, 0.5);
    transform: scale(1.1);
}

#userDrop::after {
    display: none;
    /* Hide default arrow */
}

/* Password Toggle Visibility */
.password-field-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.password-toggle:hover {
    color: var(--text-main);
}

/* Responsive adjustment for name next to avatar */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item .dropdown-toggle {
        padding: 10px 0;
    }

    .nav-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Mass Actions Styles */
.bulk-action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 1000;
    width: auto;
    min-width: 320px;
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 2px solid var(--accent-secondary) !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.bulk-action-bar:hover {
    transform: translateX(-50%) translateY(0) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.card-checkbox-container {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 10;
}

.form-check-input-premium {
    cursor: pointer;
    width: 1.2rem;
    height: 1.2rem;
    background-color: rgba(0, 0, 0, 0.5) !important;
    /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px);
}

.form-check-input-premium:checked {
    background-color: var(--accent-secondary) !important;
    border-color: var(--accent-secondary) !important;
    box-shadow: 0 0 10px rgba(25, 118, 230, 0.4) !important;
}

.cursor-pointer {
    cursor: pointer;
}