/* ============================================
   ADMIN.CSS - PAINEL DE ADMINISTRAÇÃO
   ============================================ */

.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
}

.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 25px;
    padding: 30px;
    animation: fadeInUp 0.3s ease;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.admin-header h2 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.admin-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Formulários */
.admin-form {
    background: #f7fafc;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.admin-form h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-admin {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-admin:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-admin.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-admin.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

/* Tabela de dados */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    font-size: 13px;
    text-align: left;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.admin-table tr:hover {
    background: #f7fafc;
}

/* Cards de estatísticas */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat {
    background: white;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-stat .stat-number {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat .stat-label {
    color: #718096;
    font-size: 14px;
    margin-top: 5px;
}

/* Botão flutuante do admin */
.btn-admin-flutuante {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-admin-flutuante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102,126,234,0.6);
}

/* Responsivo */
@media (max-width: 768px) {
    .admin-container {
        margin: 10px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-header h2 {
        font-size: 22px;
    }
    
    .admin-tab {
        padding: 8px 16px;
        font-size: 12px;
    }
}