﻿/* ============================================================================
   CERTIFICADOS – Tema moderno (Bootstrap 5 + Bootstrap Icons)
   Cor institucional: #414797
   ========================================================================== */

/* Base / fundo */
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #414797 0%, #2e326c 100%);
    color: #fff;
    min-height: 100vh;
}

.text-accent {
    color: #72c02c !important;
}

/* Header (usado pelo _Layout) */
header h1 {
    font-weight: 600;
    letter-spacing: .5px;
}

/* ======================= CARD CENTRAL (Login e Forms) ======================= */
.cert-card {
    background: #fff;
    color: #333;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    transition: transform .3s ease, box-shadow .3s ease;
    animation: fadeInUp .5s ease-out;
}

    .cert-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 70px rgba(0,0,0,.4);
    }

    .cert-card h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #414797;
        margin-bottom: .5rem;
    }

    .cert-card .subtitle {
        font-size: 1rem;
        color: #6c757d;
        margin-bottom: 2rem;
    }

/* Campos de formulário (CPF) */
.form-floating {
    position: relative;
    margin-bottom: 1.8rem;
}

    .form-floating .form-control {
        width: 100%;
        padding: 1rem 1rem 1rem 3rem;
        border-radius: 12px;
        border: 1px solid #ccc;
        font-size: 1.2rem;
        transition: all .3s ease;
        background: #fff;
    }

        .form-floating .form-control:focus {
            border-color: #414797;
            box-shadow: 0 0 0 5px rgba(65,71,151,.2);
        }

    .form-floating label {
        position: absolute;
        top: 50%;
        left: 3rem;
        transform: translateY(-50%);
        font-size: 1rem;
        color: #6c757d;
        pointer-events: none;
        transition: all .2s ease;
        background: transparent;
    }

    .form-floating .form-control:focus + label,
    .form-floating .form-control:not(:placeholder-shown) + label {
        top: -.6rem;
        left: 1rem;
        font-size: .85rem;
        background: #fff;
        padding: 0 .4rem;
        color: #414797;
    }

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #414797;
    font-size: 1.3rem;
}

/* Botões */
.btn-primary {
    background: #414797;
    border: none;
    padding: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 12px;
    transition: background .3s ease, transform .2s ease;
}

    .btn-primary:hover {
        background: #2e326c;
        transform: translateY(-2px);
    }

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

/* Card grande para listagens */
.cert-card-xl {
    background: #fff;
    color: #111827;
    border-radius: 24px;
    padding: 2rem;
    max-width: 1100px;
    width: 100%;
    margin: 2rem auto;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.cert-head .h-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg,#414797,#2e326c);
    color: #fff;
    box-shadow: 0 6px 18px rgba(65,71,151,.35);
}

.text-muted-2 {
    color: #6b7280;
}

/* ======================= Barra do Usuário Logado ======================== */
.user-info-bar {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

    .user-info-bar .welcome-message {
        color: #fff;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .user-info-bar .btn-outline-light {
        border-radius: 50px;
        border-width: 1px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .user-info-bar .btn-outline-light:hover {
            background-color: #fff;
            color: #414797;
        }

/* ======================= Formulário de Avaliação Moderno ======================== */
.evaluation-form {
    padding: 2.5rem;
}

.evaluation-topic {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

    .evaluation-topic:first-of-type {
        margin-top: 0;
    }

    .evaluation-topic h3 {
        font-weight: 700;
        color: #414797;
        font-size: 1.5rem;
    }

    .evaluation-topic p {
        color: #6b7280;
        margin-bottom: 0;
    }

.evaluation-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 1rem;
}

    .evaluation-item:last-child {
        border-bottom: none;
    }

    .evaluation-item .item-description {
        font-size: 1rem;
        color: #374151;
        font-weight: 500;
        flex: 1 1 300px;
    }

    .evaluation-item .item-action {
        flex-shrink: 0;
        width: 100%;
        max-width: 480px; /* Alinha com o tamanho típico da rating-group */
    }

        /* Estilo para textarea */
        .evaluation-item .item-action textarea.form-control {
            width: 100%;
            min-height: 80px; /* Altura mínima para consistência visual */
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid #d1d5db;
            font-size: 1rem;
            color: #374151;
            resize: none; /* Impede redimensionamento manual */
            transition: all 0.3s ease;
        }

            .evaluation-item .item-action textarea.form-control:focus {
                border-color: #414797;
                box-shadow: 0 0 0 5px rgba(65,71,151,.2);
                outline: none;
            }

            .evaluation-item .item-action textarea.form-control::placeholder {
                color: #6b7280;
            }

/* Estilos do Componente de Rating Bar */
.rating-group {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

    .rating-group input[type="radio"] {
        display: none;
    }

    .rating-group label {
        cursor: pointer;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 2px;
        font-weight: 700;
        color: #414797;
        background-color: #f4f6fb;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        transition: all 0.2s ease-in-out;
    }

        .rating-group label:hover {
            background-color: #dbeafe;
            color: #1e40af;
            border-color: #93c5fd;
        }

        /* Animação para destacar cores */
        .rating-group label.highlight {
            animation: highlightColor 0.3s ease-in-out;
        }

@keyframes highlightColor {
    0% {
        transform: scale(1);
        box-shadow: none;
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: none;
    }
}

.evaluation-footer {
    margin-top: 2.5rem;
    text-align: right;
}

    .evaluation-footer .btn-primary {
        width: auto;
        padding: .75rem 1.5rem;
    }
}
