/* ============================================
   PAINEL ADMINISTRATIVO
   ============================================ */

.admin-login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.admin-login-box {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    border: 3px solid rgba(139, 69, 19, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.admin-login-title {
    font-size: 32px;
    color: #8B4513;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.admin-login-subtitle {
    font-size: 16px;
    color: #4a7c59;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-group label {
    color: #ecf0f1;
    font-size: 14px;
    font-weight: bold;
}

.admin-form-group input {
    padding: 12px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.admin-form-group input:focus {
    outline: none;
    border-color: #8B4513;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

.admin-login-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
    margin-top: 10px;
}

.admin-login-button:hover {
    background: linear-gradient(135deg, #654321 0%, #8B4513 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.6);
}

.admin-error-message {
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.admin-error-message.show {
    display: block;
}

/* ============================================
   PAINEL PRINCIPAL
   ============================================ */

.admin-panel {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ecf0f1;
}

.admin-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgba(139, 69, 19, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.admin-header h1 {
    font-size: 28px;
    color: #8B4513;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.admin-logout-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4);
}

.admin-content {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* ============================================
   MENU LATERAL
   ============================================ */

.admin-sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.6);
    border-right: 2px solid rgba(139, 69, 19, 0.5);
    padding: 20px 0;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.admin-menu-item:hover {
    background: rgba(139, 69, 19, 0.2);
    border-left-color: rgba(139, 69, 19, 0.5);
}

.admin-menu-item.active {
    background: rgba(139, 69, 19, 0.4);
    border-left-color: #8B4513;
}

.admin-menu-icon {
    font-size: 24px;
}

.admin-menu-text {
    font-size: 16px;
    font-weight: bold;
    color: #ecf0f1;
}

/* ============================================
   CONTEÚDO PRINCIPAL
   ============================================ */

.admin-main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    font-size: 32px;
    color: #8B4513;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.admin-section h3 {
    font-size: 20px;
    color: #D2691E;
    margin: 20px 0 15px 0;
}

.admin-section-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(139, 69, 19, 0.3);
}

/* Rolagem específica para seção de animais */
#section-animals .admin-section-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Rolagem específica para seção de mapas */
#section-maps .admin-section-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Estilizar barra de rolagem da seção de mapas */
#section-maps .admin-section-content::-webkit-scrollbar {
    width: 12px;
}

#section-maps .admin-section-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

#section-maps .admin-section-content::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.6);
    border-radius: 6px;
    transition: background 0.3s ease;
}

#section-maps .admin-section-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.8);
}

/* Rolagem específica para seção de spawns */
#section-spawns .admin-section-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Estilizar barra de rolagem da seção de animais */
#section-animals .admin-section-content::-webkit-scrollbar {
    width: 12px;
}

#section-animals .admin-section-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

#section-animals .admin-section-content::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.6);
    border-radius: 6px;
    transition: background 0.3s ease;
}

#section-animals .admin-section-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.8);
}

/* Rolagem específica para seção de spawns */
#section-spawns .admin-section-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Estilizar barra de rolagem da seção de spawns */
#section-spawns .admin-section-content::-webkit-scrollbar {
    width: 12px;
}

#section-spawns .admin-section-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

#section-spawns .admin-section-content::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.6);
    border-radius: 6px;
    transition: background 0.3s ease;
}

#section-spawns .admin-section-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.8);
}

/* Rolagem específica para seção de armas */
#section-weapons .admin-section-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Grid layout para lista de armas */
.admin-weapons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Grid layout para lista de itens da loja */
.admin-shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

/* Melhorar espaçamento dos cards de armas */
#section-weapons .admin-map-card {
    margin-bottom: 0;
}

/* Organizar seção de armas */
#section-weapons .admin-section-content > h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #D2691E;
    font-size: 20px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
    padding-bottom: 10px;
}

/* Espaçamento entre seções de armas e loja */
#section-weapons .admin-actions {
    margin-top: 20px;
    margin-bottom: 20px;
}
}

/* Estilizar barra de rolagem da seção de armas */
#section-weapons .admin-section-content::-webkit-scrollbar {
    width: 12px;
}

#section-weapons .admin-section-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

#section-weapons .admin-section-content::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.6);
    border-radius: 6px;
    transition: background 0.3s ease;
}

#section-weapons .admin-section-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.8);
}

/* ============================================
   CONTROLES E FORMULÁRIOS
   ============================================ */

.admin-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-control-group label {
    color: #ecf0f1;
    font-size: 14px;
    font-weight: bold;
}

.admin-select,
.admin-input {
    padding: 10px;
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-select:focus,
.admin-input:focus {
    outline: none;
    border-color: #8B4513;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

.admin-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Select múltiplo para espécies */
.admin-select[multiple] {
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
}

.admin-select[multiple] option {
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
}

.admin-select[multiple] option:hover {
    background: rgba(139, 69, 19, 0.3);
}

.admin-select[multiple] option:checked {
    background: rgba(139, 69, 19, 0.6);
    color: #fff;
    font-weight: bold;
}

/* ============================================
   BOTÕES
   ============================================ */

.admin-save-button,
.admin-add-button,
.admin-reset-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.admin-save-button {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.admin-save-button:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.4);
}

.admin-add-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.admin-add-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

.admin-reset-button {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
}

.admin-reset-button:hover {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.4);
}

.admin-actions {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(139, 69, 19, 0.3);
}

/* ============================================
   LISTA DE MAPAS
   ============================================ */

.admin-map-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.admin-map-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.admin-map-card:hover {
    border-color: rgba(139, 69, 19, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.admin-map-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-map-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-map-card-delete {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-map-card-delete:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.admin-map-card-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Rolagem no conteúdo dos cards de armas */
#section-weapons .admin-map-card-content {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Estilizar barra de rolagem dos cards de armas */
#section-weapons .admin-map-card-content::-webkit-scrollbar {
    width: 8px;
}

#section-weapons .admin-map-card-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#section-weapons .admin-map-card-content::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

#section-weapons .admin-map-card-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.7);
}

/* Botão de salvar individual para cada arma */
.admin-save-weapon-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.admin-save-weapon-btn:hover {
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 100%);
    border-color: rgba(139, 69, 19, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.admin-save-weapon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-map-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #D2691E;
}

.admin-map-card-toggle {
    padding: 5px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.admin-map-card-toggle.active {
    background: #2ecc71;
    color: #fff;
}

.admin-map-card-toggle.inactive {
    background: #e74c3c;
    color: #fff;
}

/* ============================================
   PONTOS DE SPAWN
   ============================================ */

.admin-spawn-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-spawn-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-spawn-summary {
    margin-top: 10px;
}

.admin-spawn-summary strong {
    color: #D2691E;
}

.admin-spawn-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.admin-spawn-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 10px;
    padding: 20px;
}

.admin-spawn-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-spawn-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #D2691E;
}

.admin-spawn-card-delete {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.admin-spawn-card-delete:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.admin-spawn-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   ESPÉCIES DE ANIMAIS
   ============================================ */

.admin-animal-controls {
    margin-bottom: 25px;
}

.admin-animal-species {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-animal-species h3 {
    margin-bottom: 15px;
    color: #D2691E;
    font-size: 18px;
}

.admin-species-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

/* Estilizar barra de rolagem */
.admin-species-list::-webkit-scrollbar {
    width: 10px;
}

.admin-species-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.admin-species-list::-webkit-scrollbar-thumb {
    background: rgba(139, 69, 19, 0.6);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.admin-species-list::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 69, 19, 0.8);
}

.admin-species-item {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(139, 69, 19, 0.5);
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.admin-species-item:hover {
    border-color: rgba(139, 69, 19, 0.8);
    transform: translateY(-2px);
}

.admin-species-icon {
    font-size: 32px;
}

.admin-species-name {
    font-size: 16px;
    font-weight: bold;
    color: #ecf0f1;
    flex: 1;
}

.admin-species-remove {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.admin-species-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.admin-add-species {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed rgba(139, 69, 19, 0.5);
}

/* ============================================
   CONFIGURAÇÕES
   ============================================ */

.admin-settings-group {
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .admin-content {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
    }

    .admin-menu-item {
        white-space: nowrap;
    }

    .admin-map-list,
    .admin-spawn-list {
        grid-template-columns: 1fr;
    }
}

