:root {
    --header-color: #0d1117;
    --bg-color: #161b22;
    --primary-color: hsl(var(--base-h), var(--base-s), var(--base-l));
    --primary-hover: hsl(var(--base-h), var(--base-s), calc(var(--base-l) - 10%));
    --text-white: #ffffff;
    --text-opacity-60: rgba(255, 255, 255, 0.6);
    --border-color: rgba(253, 255, 255, 0.1);
    --shadow-primary: hsla(var(--base-h), var(--base-s), var(--base-l), 0.6);
}

/* Modern Header Styles */
.header {
    background: var(--header-color);
    border-bottom: 1px solid rgba(253, 255, 255, 0.1);
    height: 64px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 768px) {
    .header {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100vw;
    }
}

/* Desktop Navigation Sidebar */
.nav-tab {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem 0.875rem;
    opacity: 0.6;
    border-bottom: 4px solid transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.nav-tab.active {
    border-bottom-color: var(--primary-color);
    opacity: 1;
}

.nav-tab:hover {
    opacity: 1;
    color: white;
}

/* Container */
.container {
    padding: 0 0.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

.grow {
    flex: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.375rem;
    margin-left: -0.375rem;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.header-logo {
    max-height: 27px;
    height: auto;
    display: block;
}

/* Exact Button Styles from Example */
.button {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-decoration: none;
    border: none;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
}

.button:hover {
    opacity: 0.9;
}

.button:active {
    transform: scale(0.95);
}

.button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Primary Button */
.button-primary,
.header-register-button {
    background: var(--primary-color) !important;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15)) !important;
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(var(--base-h), var(--base-s), var(--base-l), 0.6) !important;
}

.header-register-button {
    text-transform: uppercase;
    font-weight: normal;
    padding: 0.375rem 0.75rem;
}

@media (min-width: 768px) {
    .header-register-button {
        font-weight: 500;
        padding: 0.5rem 1rem;
    }
}

/* Login Button */
.header-login-button {
    background: rgba(253, 255, 255, 0.1);
    color: white;
    text-transform: uppercase;
    font-weight: normal;
    padding: 0.375rem 0.75rem;
}

@media (min-width: 768px) {
    .header-login-button {
        padding: 0.5rem 1rem;
    }
}

/* Outlined Button */
.button-outlined {
    background: transparent;
    border: none;
}

.header-menu-icon {
    padding: 0.375rem;
    margin-left: -0.375rem;
}

/* User Dropdown */
.user-dropdown-btn {
    background: rgba(253, 255, 255, 0.1);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-dropdown-btn:hover {
    background: rgba(253, 255, 255, 0.2);
    color: var(--text-white);
}

.button {
    padding: 0.75rem 1rem;
    border-radius: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    opacity: 0.9;
    transform: scale(0.95);
}

.button:active {
    transform: scale(0.95);
}

.button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Search Icon */
.search-icon {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.125rem;
    margin-right: 0.25rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0.8;
    color: white;
}

.search-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.search-icon:active {
    transform: scale(0.9);
}

/* Icon utilities */
.size-5 {
    width: 1.25rem;
    height: 1.25rem;
}

.size-6 {
    width: 1.5rem;
    height: 1.5rem;
}

.size-7 {
    width: 1.75rem;
    height: 1.75rem;
}

/* Flex utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-2\.5 {
    gap: 0.625rem;
}

@media (min-width: 768px) {
    .md\:gap-2 {
        gap: 0.5rem;
    }
}

.gap-3 {
    gap: 0.75rem;
}

/* Absolute positioning */
.absolute {
    position: absolute;
}

.left-0 {
    left: 0;
}

.top-0 {
    top: 0;
}

.w-\[280px\] {
    width: 280px;
}

.h-\[64px\] {
    height: 64px;
}

.justify-center {
    justify-content: center;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    
    .md\:block {
        display: block;
    }
    
    .md\:gap-3 {
        gap: 0.75rem;
    }
}

/* Tailwind-like utility classes */
.bg-surface {
    background-color: var(--header-color);
}

.border-b {
    border-bottom-width: 1px;
}

.border-\[#fdffff1a\] {
    border-color: rgba(253, 255, 255, 0.1);
}

.h-\[64px\] {
    height: 64px;
}

.relative {
    position: relative;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.sm\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .sm\:px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.md\:pl-\[280px\] {
    padding-left: 0;
}

@media (min-width: 768px) {
    .md\:pl-\[280px\] {
        padding-left: 280px;
    }
}

.inline-block {
    display: inline-block;
}

.router-link-active {
    /* Active link styles handled by .nav-tab.active */
}

.router-link-exact-active {
    /* Exact active link styles */
}

.header-logo {
    max-height: 27px;
    height: auto;
    display: block;
}

/* Mobile Logo Adjustments */
@media (max-width: 767px) {
    .header-logo {
        max-height: 18px !important;
        width: auto;
    }
}

/* Header Container - Full Width Layout */
.header .w-full {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header .flex.items-center.justify-between {
    width: 100% !important;
    justify-content: space-between !important;
}

/* Old container rules for compatibility */
.header .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}



.header .grow.flex.items-center {
    justify-content: flex-start !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.header-logo {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Desktop Logo Positioning */
@media (min-width: 768px) {
    .header-logo {
        justify-self: flex-start;
        margin-left: 0 !important;
    }
    
    .header .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.max-h-\[27px\] {
    max-height: 27px;
}

.h-auto {
    height: auto;
}

.block {
    display: block;
}

/* Additional Tailwind classes for new layout */
.w-full {
    width: 100%;
}

.justify-between {
    justify-content: space-between;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.pl-3 {
    padding-left: 0.75rem;
}

.pr-0 {
    padding-right: 0;
}

.pr-1 {
    padding-right: 0.25rem;
}

/* Mobile padding adjustment */
@media (max-width: 767px) {
    .px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .pl-3 {
        padding-left: 0.5rem !important;
    }
    
    .pr-0 {
        padding-right: 0 !important;
    }
    
    .pr-1 {
        padding-right: 0.125rem !important;
    }
}

/* Additional Tailwind CSS classes */
.bg-\[#fdffff1a\] {
    background-color: rgba(253, 255, 255, 0.1);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops)) !important;
}

.from-black\/15 {
    --tw-gradient-from: rgba(0, 0, 0, 0.15);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-white\/15 {
    --tw-gradient-to: rgba(255, 255, 255, 0.15);
}

.text-primary-contrast {
    color: #000;
}

.text-white {
    color: #fff;
}

.uppercase {
    text-transform: uppercase;
}

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.sm\:px-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 640px) {
    .sm\:px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.md\:py-2 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

@media (min-width: 768px) {
    .md\:py-2 {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .md\:font-medium {
        font-weight: 500;
    }
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-primary\/60 {
    box-shadow: 0 2px 8px rgba(var(--base-h), var(--base-s), var(--base-l), 0.6);
}

.rounded-custom {
    border-radius: 100px;
}

.select-none {
    user-select: none;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

.active\:scale-95:active {
    transform: scale(0.95);
}

.disabled\:opacity-30:disabled {
    opacity: 0.3;
}

.disabled\:pointer-events-none:disabled {
    pointer-events: none;
}

.\!no-underline {
    text-decoration: none !important;
}

.\[text-shadow\:0px_1px_1px_rgb\(0_0_0\/20\%\)\] {
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
}

.cursor-pointer {
    cursor: pointer;
}

.gap-2\.5 {
    gap: 0.625rem;
}

.uw\:gap-3\.5 {
    gap: 0.875rem;
}

.p-0\.5 {
    padding: 0.125rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

.active\:scale-90:active {
    transform: scale(0.9);
}

.\!p-1\.5 {
    padding: 0.375rem !important;
}

.-ml-1\.5 {
    margin-left: -0.375rem;
}

/* Additional mobile optimizations */
@media (max-width: 767px) {
    .gap-2\.5 {
        gap: 0.25rem !important;
    }
    
    .container {
        padding: 0 0.5rem;
        gap: 0.375rem !important;
    }
    
    /* Mobile Button Adjustments */
    .header-register-button,
    .header-login-button {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        min-width: auto !important;
    }
    
    /* Mobile Search Icon */
    .size-6 {
        width: 1rem !important;
        height: 1rem !important;
    }
    
    /* Mobile Header Container */
    .header .container {
        padding: 0 !important;
    }
    
    /* Mobile Text Adjustments */
    button[data-bs-target="#registerModal"] {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.4rem !important;
    }
    
    button[data-bs-target="#loginModal"] {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.4rem !important;
    }
    
    button[data-bs-target="#loginModal"] svg {
        width: 0.75rem !important;
        height: 0.75rem !important;
    }
    
    /* Hide text on very small screens */
    @media (max-width: 400px) {
        button[data-bs-target="#registerModal"] {
            font-size: 0.7rem !important;
            padding: 0.2rem 0.3rem !important;
        }
        
        button[data-bs-target="#loginModal"] {
            font-size: 0.7rem !important;
            padding: 0.2rem 0.3rem !important;
        }
        
        button[data-bs-target="#loginModal"] svg {
            width: 0.6rem !important;
            height: 0.6rem !important;
        }
        
        .header-logo {
            max-height: 16px !important;
        }
        
        /* Very small screens - reduce gaps more */
        .header .container {
            gap: 0.2rem !important;
        }
    }
}

/* Force Site Base Color on Register Button */
button[data-bs-target="#registerModal"],
.header-register-button.button-primary {
    background: var(--primary-color) !important;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15)) !important;
    color: #000 !important;
    border: none !important;
}

button[data-bs-target="#registerModal"]:hover,
.header-register-button.button-primary:hover {
    background: var(--primary-hover) !important;
}

/* Mobile Menu */
.header-menu-icon {
    background: transparent;
    border: none;
    padding: 0.375rem;
    margin: 0 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .header-menu-icon {
        display: flex;
    }
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--header-color);
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.show {
    left: 0;
}

.mobile-nav-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-white);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 767px) {
    .header-register-button,
    .header-login-button {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .search-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Utilities */
.d-flex {
    display: flex;
}

.d-none {
    display: none;
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex;
    }
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Modal overrides para melhor integração */
.modal-content {
    background-color: var(--header-color);
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-title {
    color: var(--text-white);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    color: var(--text-white);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--base-h), var(--base-s), var(--base-l), 0.25);
    color: var(--text-white);
}

.form-control::placeholder {
    color: var(--text-opacity-60);
}

.form-label {
    color: var(--text-white);
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    color: var(--text-white);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #000;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-decoration-none {
    text-decoration: none;
}

.text-decoration-none:hover {
    text-decoration: underline;
}
