/* Importar fonte Poppins do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset básico */
* {
    box-sizing: border-box;
}

/* Estilo geral do corpo */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e6f0fa 0%, #f7f9fc 100%);
    color: #2d3748;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* Container principal */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Títulos */
h1 {
    font-size: 2.2rem;
    color: #2b6cb0;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2.section-title {
    font-size: 1.6rem;
    color: #2b6cb0;
    margin: 30px 0 15px;
    font-weight: 600;
}

h5.section-title {
    font-size: 1.3rem;
    color: #2b6cb0;
    margin: 20px 0 10px;
    font-weight: 500;
}

/* Botões */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(45deg, #2b6cb0, #4299e1);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2c5282, #3182ce);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background: linear-gradient(45deg, #38a169, #68d391);
    border: none;
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(45deg, #2f855a, #4ade80);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: linear-gradient(45deg, #e53e3e, #f56565);
    border: none;
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c53030, #ed8936);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: linear-gradient(45deg, #718096, #a0aec0);
    border: none;
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5a6779, #8795a1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Formulários */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.2);
}

.form-check {
    margin-bottom: 12px;
}

.form-check-input {
    margin-top: 0.35rem;
    cursor: pointer;
}

.form-label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
}

/* Tabelas */
.table {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.table th, .table td {
    vertical-align: middle;
    padding: 14px;
    font-size: 0.95rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f7fafc;
}

.table tr {
    transition: background-color 0.3s ease;
}

.table tr:hover {
    background-color: #edf2f7;
}

.table tr[data-bs-toggle="collapse"] {
    cursor: pointer;
}

.collapse {
    background-color: #f7fafc;
}

/* Cards */
.card {
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border: none;
    background: #fff;
}

.card-header {
    background: linear-gradient(45deg, #edf2f7, #f7fafc);
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
}

/* Dashboard */
.dashboard-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

/* Mensagem de sem vagas */
.no-jobs-message {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
}

.no-jobs-message h2 {
    color: #e53e3e;
    font-size: 1.6rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.no-jobs-message p {
    color: #2d3748;
    font-size: 1.2rem;
}

/* Progresso */
.progress {
    height: 24px;
    border-radius: 8px;
    background-color: #e2e8f0;
}

.progress-bar {
    background: linear-gradient(45deg, #2b6cb0, #68d391);
    border-radius: 8px;
    transition: width 0.3s ease;
}

/* Resultados de perfil */
.profile-results {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.profile-results .chart-container {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.profile-results .results-text {
    flex: 1;
    min-width: 280px;
}

.profile-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-results ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #4a5568;
}

.profile-results ul li strong {
    color: #2d3748;
    font-weight: 600;
}

/* Depuração */
.debug-info {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 12px;
}

/* Questionário */
.question-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Alertas */
.alert {
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Success Message */
.success-message {
    background: linear-gradient(45deg, #38a169, #68d391); /* Matches btn-success gradient */
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.success-message .alert-heading {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 1.2rem;
    font-weight: 400;
}

/* Admin Dashboard */
.admin-dashboard {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
}

.admin-dashboard h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #2b6cb0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dashboard-card-option {
    background: linear-gradient(45deg, #ffffff, #f7fafc);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.dashboard-card-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.dashboard-card-option a {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2b6cb0;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
    height: 100%;
}

.dashboard-card-option a:hover {
    color: #1a4971;
}

.dashboard-card-option .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2b6cb0;
    display: block;
}

.dashboard-card-option span {
    display: block;
    font-size: 1rem;
    color: #4a5568;
}

/* Formulário de Login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in;
}

.login-container h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.login-container .form-control {
    padding: 10px;
    font-size: 0.95rem;
}

.login-container .btn {
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
}

/* Animação de fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .admin-dashboard {
        padding: 20px;
        margin: 20px auto;
    }
    .login-container {
        max-width: 90%;
        margin: 50px auto;
        padding: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2.section-title {
        font-size: 1.4rem;
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .table th, .table td {
        font-size: 0.9rem;
        padding: 10px;
    }
    .profile-results {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .profile-results .chart-container {
        width: 120px;
        height: 120px;
    }
    .question-container {
        padding: 15px;
    }
    .no-jobs-message {
        margin-top: 40px;
        padding: 20px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    .dashboard-card, .dashboard-card-option {
        padding: 15px;
    }
    .login-container h1 {
        font-size: 1.5rem;
    }
}