body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

header {
    background: #006633;
    color: white;
    padding: 20px;
    text-align: center;
}

.container {
    width: 1000px;
    max-width: 95%;
    margin: 30px auto;
}

.box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

h1, h2 {
    margin-top: 0;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

button {
    background: #006633;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

button:hover {
    opacity: 0.92;
}

.sucesso {
    background: #e7f7ea;
    color: #1f6b2a;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.erro {
    background: #fdeaea;
    color: #9b1c1c;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: white;
}

table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    vertical-align: top;
}

.ocupado {
    background: #ffd9d9;
    font-weight: bold;
}

.livre {
    background: #e7f7ea;
}

.bloqueado {
    background: #eeeeee;
    color: #777;
}

.small {
    font-size: 13px;
}

.menu-links a {
    display: inline-block;
    margin-right: 40px;
    padding: 8px 12px;
    background: #f2f2f2;
    border-radius: 6px;
}

.menu-links a:hover {
    text-decoration: underline;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

h3 {
    margin-top: 0;
}

.campo-com-botao {
    display: flex;
    gap: 10px;
    align-items: center;
}

.campo-com-botao input {
    flex: 1;
    margin-bottom: 0;
}

.campo-com-botao button {
    width: auto;
    min-width: 120px;
    margin-bottom: 0;
}

.botao-secundario {
    background: #555;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
}

.botao-secundario:hover {
    opacity: 0.92;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-conteudo {
    background: white;
    width: 900px;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    padding: 20px;
    overflow: hidden;
}

.modal-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fechar-modal {
    background: #b00020;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    width: auto;
}

.tabela-scroll {
    overflow-y: auto;
    max-height: 65vh;
}

.linha-clicavel {
    cursor: pointer;
}

.linha-clicavel:hover {
    background: #eef7ff;
}

.link-celula {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.link-celula:hover {
    text-decoration: underline;
}

.aviso-telegram {
    background-color: #fff3cd;
    border: 2px solid #ffeeba;
    text-align: center;
}

.botao-telegram {
    display: inline-block;
    background-color: #0088cc;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.botao-telegram:hover {
    background-color: #0077b5;
}

.menu-acoes{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    justify-content:center;
}

.botao-acao{
    background:#ffe082;
    padding:14px 22px;
    border-radius:8px;
    text-decoration:none;
    color:#333;
    font-weight:bold;
    border:2px solid #f5c542;
    transition:0.2s;
}

.botao-acao:hover{
    background:#ffd54f;
    transform:scale(1.03);
}

.botao-acao.destaque{
    background:#4caf50;
    color:white;
    border-color:#388e3c;
}

.botao-acao.destaque:hover{
    background:#43a047;
}

.botao-acao.cancelar{
    background:#e53935;
    color:white;
    border-color:#c62828;
}

.botao-acao.cancelar:hover{
    background:#d32f2f;
}

#buscaJogadorModal {
    margin-bottom: 15px;
}

.header-conteudo{
    width: 1000px;
    max-width: 95%;
    margin: 0 auto;
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
    gap:20px;
}

.header-esquerda{
    display:flex;
    justify-content:flex-start;
    align-items:center;
}

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

.header-centro h1{
    margin:0;
}

.header-centro p{
    margin:6px 0 0 0;
}

.header-direita{
    min-height:1px;
}

.botao-home{
    display:inline-block;
    background:#ffffff;
    color:#006633;
    padding:8px 12px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
    border:2px solid #ffffff;
    white-space:nowrap;
}

.botao-home:hover{
    background:#f2f2f2;
}

@media (max-width: 768px){
    .header-conteudo{
        grid-template-columns: 1fr;
        text-align:center;
    }

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

    .header-direita{
        display:none;
    }
}

.status-liberado {
    color: #1b5e20;
    background: #c8e6c9;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.status-bloqueado {
    color: white;
    background: #d32f2f;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}