/* Admin CSS - Estilos do Painel Administrativo */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Header Admin */
.admin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user a {
    color: white;
    text-decoration: none;
}

.admin-user a:hover {
    color: rgba(255,255,255,0.9);
}

/* Navegação Admin */
.admin-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-nav .nav {
    padding: 0;
}

.admin-nav .nav-link {
    color: #495057;
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-nav .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.admin-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-nav .nav-link i {
    margin-right: 0.5rem;
}

/* Breadcrumb */
.admin-breadcrumb {
    background: #f8f9fa;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

/* Conteúdo Admin */
.admin-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: #f8f9fa;
}

/* Cards */
.admin-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* Tabelas */
.admin-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.admin-table th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.admin-table td {
    padding: 1rem;
    border-color: #e9ecef;
}

/* Botões */
.btn-admin {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-admin-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
}

.btn-admin-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Formulários */
.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.admin-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.admin-form .form-control,
.admin-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Editor Summernote */
.note-editor {
    border: 2px solid #e9ecef !important;
    border-radius: 6px !important;
}

.note-editor.note-frame {
    box-shadow: none !important;
}

.note-toolbar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dashboard-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.dashboard-card .card-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-card .card-text {
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Footer Admin */
.admin-footer {
    background: #343a40;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-nav .nav {
        flex-direction: column;
    }
    
    .admin-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .admin-content {
        padding: 1rem 0;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
}

/* Utilitários */
.admin-shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.admin-rounded {
    border-radius: 10px;
}

.admin-transition {
    transition: all 0.3s ease;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading */
.admin-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}