/* ========================================
   PAINEL ADMINISTRATIVO - POKEMAIS+
======================================== */

.admin-container {
    width: calc(100% - 40px);
    max-width: 1450px;
    margin: 40px auto;
    color: #e8e5dc;
}

/* CABEÇALHO */

.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-title h2 {
    color: #d6ad65;
    font-size: 27px;
    margin: 0;
}

.admin-subtitle {
    color: #929292;
    font-size: 14px;
    margin-top: 8px;
}

/* ESTATÍSTICAS */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat {
    position: relative;
    background: linear-gradient(145deg, #222328, #191a1e);
    border: 1px solid #34343a;
    border-radius: 12px;
    padding: 24px;
    overflow: hidden;
    transition: 0.25s;
}

.admin-stat:hover {
    border-color: #98733e;
    transform: translateY(-3px);
}

.admin-stat span {
    display: block;
    color: #aaa;
    font-size: 13px;
    margin-bottom: 14px;
}

.admin-stat strong {
    display: block;
    color: #d6ad65;
    font-size: 32px;
    font-weight: 700;
}

/* PAINEL DE TICKETS */

.admin-panel {
    background: #1b1c20;
    border: 1px solid #34343a;
    border-radius: 12px;
    overflow: hidden;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 25px;
    background: #222328;
    border-bottom: 1px solid #34343a;
}

.admin-panel-header h3 {
    color: #d6ad65;
    font-size: 17px;
    margin: 0;
}

/* TABELA */

.ticket-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-ticket-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.admin-ticket-table thead {
    background: #202126;
}

.admin-ticket-table th {
    color: #bda16f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    padding: 17px 18px;
    white-space: nowrap;
}

.admin-ticket-table td {
    color: #c8c8c8;
    font-size: 13px;
    padding: 17px 18px;
    border-top: 1px solid #303136;
}

.admin-ticket-table tbody tr {
    transition: background 0.2s;
}

.admin-ticket-table tbody tr:hover {
    background: #25262b;
}

/* NÚMERO DO TICKET */

.ticket-number {
    color: #d6ad65;
    font-weight: 700;
    font-size: 14px;
}

.ticket-player {
    color: #eee;
    font-weight: 600;
}

/* STATUS */

.ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.status-open {
    background: rgba(214, 173, 101, 0.13);
    color: #e7c27d;
    border: 1px solid rgba(214, 173, 101, 0.25);
}

.status-waiting_support {
    background: rgba(220, 105, 75, 0.13);
    color: #ed987f;
    border: 1px solid rgba(220, 105, 75, 0.25);
}

.status-waiting_player {
    background: rgba(90, 160, 180, 0.13);
    color: #8bc9d8;
    border: 1px solid rgba(90, 160, 180, 0.25);
}

.status-closed {
    background: rgba(100, 160, 110, 0.13);
    color: #9ed1a4;
    border: 1px solid rgba(100, 160, 110, 0.25);
}

/* BOTÃO ABRIR */

.ticket-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c49a56, #9d7438);
    color: #171717;
    padding: 9px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s;
}

.ticket-action:hover {
    background: linear-gradient(135deg, #e1bd7c, #bd914d);
    transform: translateY(-1px);
}

/* SEM TICKETS */

.no-tickets {
    padding: 45px 20px !important;
    text-align: center;
    color: #858585 !important;
    font-size: 14px !important;
}

/* RESPONSIVIDADE */

@media (max-width: 1000px) {
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .admin-container {
        width: calc(100% - 24px);
        margin: 25px auto;
    }

    .admin-title h2 {
        font-size: 22px;
    }

    .admin-stats {
        gap: 12px;
    }

    .admin-stat {
        padding: 17px;
    }

    .admin-stat strong {
        font-size: 26px;
    }

    .admin-panel-header {
        padding: 18px;
    }
}

@media (max-width: 380px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}