* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #ffffff;
    background-color: #000000;
    min-height: 100vh;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    backdrop-filter: blur(8px);
}

header > div {
    display: flex;
    width: 100%;
    align-items: center;
}

header > div > div:first-child {
    display: flex;
    width: 100%;
    flex: 1;
    min-width: 0; /* Permite que o flex shrink funcione */
}

header button {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
}

.border-b-3 {
    border-bottom-width: 3px;
}

.border-primary {
    border-bottom-color: #ef4444;
}

.text-white {
    color: #ffffff;
}

.text-gray-400 {
    color: #9ca3af;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
}

.uppercase {
    text-transform: uppercase;
}

/* Container */
.max-w-full {
    max-width: 100%;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-24 {
    padding-top: 6rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .md\:mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    
    .md\:max-w-\[1440px\] {
        max-width: 1440px;
    }
    
    .md\:px-28 {
        padding-left: 7rem;
        padding-right: 7rem;
    }
    
    .md\:pt-28 {
        padding-top: 7rem;
    }
    
    .md\:pb-4 {
        padding-bottom: 1rem;
    }
}

/* Login Screen */
#login-screen {
    display: flex;
    height: 500px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
    background: linear-gradient(to bottom right, #111827, #1f2937, #000000);
    position: relative;
}

@media (min-width: 1024px) {
    #login-screen {
        height: 600px;
    }
}

#login-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

#login-screen > div {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-red-500\/20 {
    background-color: rgba(239, 68, 68, 0.2);
}

.p-6 {
    padding: 1.5rem;
}

.h-16 {
    height: 4rem;
}

.w-16 {
    width: 4rem;
}

.text-red-500 {
    color: #ef4444;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-gray-300 {
    color: #d1d5db;
}

/* Buttons */
button {
    transition: all 0.2s;
}

.inline-flex {
    display: inline-flex;
}

.shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.rounded-md {
    border-radius: 0.375rem;
}

.bg-red-500 {
    background-color: #ef4444;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

.focus-visible\:outline-none:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus-visible\:ring-\[3px\]:focus-visible {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.5);
}

/* Game Screen */
#game-screen {
    display: none;
}

#game-screen.show {
    display: block;
}

#game-screen.hidden {
    display: none;
}

.relative {
    position: relative;
}

.h-\[600px\] {
    height: 600px;
    min-height: 600px;
}

@media (min-width: 1024px) {
    .h-\[600px\] {
        height: 700px;
        min-height: 700px;
    }
}

.w-full {
    width: 100%;
}

/* Container do jogo - removendo overflow-hidden para não cortar */
#game-screen > div {
    overflow: visible;
}

.border-2 {
    border-width: 2px;
}

.border-white {
    border-color: #ffffff;
}

.shadow-\[0_0_10px_\#FFFFFF\,0_0_20px_rgba\(255\,255\,255\,0\.8\)\,0_0_30px_rgba\(255\,255\,255\,0\.6\)\,0_0_40px_rgba\(255\,255\,255\,0\.4\)\] {
    box-shadow: 0 0 10px #FFFFFF, 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
}

.border-0 {
    border-width: 0;
}

/* Iframe específico */
#aviator-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    border: none !important;
    display: block;
    z-index: 1;
}

#aviator-iframe.hidden {
    display: none !important;
    visibility: hidden;
}

#aviator-iframe.show {
    display: block !important;
    visibility: visible;
}

/* Loading */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.border-t-transparent {
    border-top-color: transparent;
}

.h-8 {
    height: 2rem;
}

.w-8 {
    width: 2rem;
}

/* Statistics */
.rounded-2xl {
    border-radius: 1rem;
}

.border {
    border-width: 1px;
}

.border-\[\#393939\] {
    border-color: #393939;
}

.bg-\[\#1B1C1D\] {
    background-color: #1B1C1D;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.pt-1 {
    padding-top: 0.25rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-4 {
    gap: 1rem;
}

.gap-1 {
    gap: 0.25rem;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.ml-1 {
    margin-left: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.bg-accent {
    background-color: #27272a;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.h-10 {
    height: 2.5rem;
}

.w-20 {
    width: 5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Login Modal */
.login-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal.hidden {
    display: none;
}

.login-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.login-modal-content {
    position: relative;
    width: 100%;
    max-width: 28rem;
    border-radius: 0.5rem;
    border: 2px solid #ef4444;
    background-color: #1B1C1D;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.login-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.login-modal-close:hover {
    color: #ffffff;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-red-400 {
    color: #f87171;
}

.underline {
    text-decoration: underline;
}

.hover\:text-red-400:hover {
    color: #f87171;
}

/* Form */
form.space-y-4 > * + * {
    margin-top: 1rem;
}

.block {
    display: block;
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.absolute {
    position: absolute;
}

.left-3 {
    left: 0.75rem;
}

.top-1\/2 {
    top: 50%;
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

input {
    width: 100%;
    border-radius: 0.375rem;
    border: 2px solid #ef4444;
    background-color: rgba(0, 0, 0, 0.5);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #ffffff;
}

input::placeholder {
    color: #9ca3af;
}

input:focus {
    border-color: #f87171;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.right-3 {
    right: 0.75rem;
}

.pr-10 {
    padding-right: 2.5rem;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

.mt-4 {
    margin-top: 1rem;
}

.hover\:text-red-400:hover {
    color: #f87171;
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Error */
#login-error {
    display: none;
}

#login-error.show {
    display: block;
}

#game-error {
    display: none;
}

#game-error.show {
    display: flex;
}

#game-loading {
    display: flex;
}

#game-loading.hidden {
    display: none;
}

#aviator-iframe.hidden {
    display: none !important;
}

#aviator-iframe.show {
    display: block !important;
}

/* Ajustes adicionais para o iframe */
#game-container {
    position: relative;
    background-color: #000000;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#game-container > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Garantir que o iframe não seja cortado */
#game-container {
    overflow: hidden;
}

#aviator-iframe {
    overflow: hidden;
    object-fit: contain;
}

/* Garantir que o iframe não seja cortado */
@media (max-width: 768px) {
    #game-container {
        height: 500px !important;
        min-height: 500px !important;
    }
    
    #aviator-iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #game-container {
        height: 600px !important;
        min-height: 600px !important;
    }
    
    #aviator-iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
    }
}

@media (min-width: 1024px) {
    #game-container {
        height: 700px !important;
        min-height: 700px !important;
    }
    
    #aviator-iframe {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
    }
}

/* Garantir que o iframe ocupe todo o espaço disponível */
#game-screen.show {
    width: 100%;
}

#game-screen.show > div {
    width: 100%;
    box-sizing: border-box;
}

/* Remover qualquer padding ou margin que possa cortar */
#game-screen * {
    box-sizing: border-box;
}

/* Menu de Usuário e Logout */
#user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 1rem;
}

#user-info {
    display: block;
}

#user-name {
    font-weight: 500;
    color: #ffffff;
}

#logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    background-color: rgba(239, 68, 68, 0.2);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f87171;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

#logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

#logout-btn svg {
    width: 1rem;
    height: 1rem;
}

#logout-btn span {
    display: inline-block;
}

/* Backdrop blur para header */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Responsividade para menu de usuário */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0.5rem;
    }
    
    #user-menu {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
        gap: 0.5rem;
    }
    
    #user-info {
        display: none !important;
    }
    
    #logout-btn span {
        display: none;
    }
    
    #logout-btn {
        padding: 0.5rem;
        min-width: 2.5rem;
        justify-content: center;
    }
    
    header > div > div:first-child {
        gap: 0.25rem;
    }
}

/* Melhorias no header */
header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ml-4 {
    margin-left: 1rem;
}

.items-center {
    align-items: center;
}

.gap-3 {
    gap: 0.75rem;
}

