/* ============================================
   ADMIN DASHBOARD - ÁVILA PERÍCIAS PREMIUM
   ============================================ */

/* Body e Layout Principal */
.admin-body {
    background: linear-gradient(135deg, #0a2540 0%, #1a3a5a 50%, #0a2540 100%);
    min-height: 100vh;
    padding-top: 80px;
}

.admin-main {
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
}

/* Badge Admin no Logo */
.admin-badge {
    background: linear-gradient(135deg, #00c6a2, #00a88e);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 198, 162, 0.3);
}

/* Seções do Admin */
.admin-section {
    padding: 3rem 0;
}

.dashboard-section {
    padding: 2rem 0 3rem;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 20px rgba(0, 198, 162, 0.3);
}

/* Grid de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 198, 162, 0.2);
}

.stat-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00c6a2;
    margin: 0;
    line-height: 1;
}

.stat-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Títulos de Seção */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 198, 162, 0.3);
}

.title-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

/* Cards de Formulário */
.admin-form-card {
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.admin-form-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Formulários Premium */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-form input[type="text"],
.premium-form textarea {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 198, 162, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.premium-form input[type="text"]:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: #00c6a2;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 198, 162, 0.2);
}

.premium-form textarea {
    resize: vertical;
    min-height: 100px;
}

.premium-form input::placeholder,
.premium-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Área de Upload de Arquivo */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(0, 198, 162, 0.5);
    border-radius: 12px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #00c6a2;
    background: rgba(255, 255, 255, 0.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.upload-placeholder small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.upload-preview {
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Botões Premium */
.btn-primary {
    background: linear-gradient(135deg, #00c6a2, #00a88e);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 198, 162, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 198, 162, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Grid de Casos do Admin */
.admin-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-case-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 198, 162, 0.2);
}

.admin-case-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.admin-case-content {
    padding: 1.5rem;
}

.admin-case-content h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.75rem;
}

.admin-case-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.admin-case-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-delete {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-delete:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Grid de Depoimentos do Admin */
.admin-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.admin-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 198, 162, 0.2);
}

.admin-testimonial-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Grid de Processos do Admin */
.admin-processes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-process-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.admin-process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 198, 162, 0.2);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.process-info h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.25rem;
}

.process-info .company-name {
    color: #00c6a2;
    font-size: 0.9rem;
}

.process-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Footer Admin */
.admin-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 198, 162, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.admin-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.admin-footer strong {
    color: #00c6a2;
}

/* Responsividade */
@media (max-width: 768px) {
    .admin-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2.5rem;
    }

    .stat-content h3 {
        font-size: 2rem;
    }

    .admin-form-card {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-cases-grid,
    .admin-testimonials-grid,
    .admin-processes-grid {
        grid-template-columns: 1fr;
    }

    .admin-badge {
        margin-left: 0.5rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-case-card,
.admin-testimonial-card,
.admin-process-card {
    animation: fadeInUp 0.5s ease forwards;
}
