/**
 * Connect RH Styles
 */

/* Variables */
:root {
    --crh-primary: #007cba;
    --crh-secondary: #50575e;
    --crh-success: #46b450;
    --crh-warning: #ffb900;
    --crh-danger: #dc3232;
    --crh-info: #00a0d2;
    --crh-light: #f9f9f9;
    --crh-dark: #23282d;
    --crh-border: #ddd;
    --crh-radius: 4px;
    --crh-shadow: 0 1px 3px rgba(0,0,0,0.13);
}

/* General Styles */
.crh-loading {
    opacity: 0.6;
    pointer-events: none;
}

.crh-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--crh-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.crh-btn-primary {
    background: var(--crh-primary);
    color: white;
    border-color: var(--crh-primary);
}

.crh-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.crh-btn-secondary {
    background: var(--crh-secondary);
    color: white;
    border-color: var(--crh-secondary);
}

/* Form Styles */
.crh-candidato-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: var(--crh-radius);
    box-shadow: var(--crh-shadow);
}

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

.crh-form-group {
    margin-bottom: 15px;
}

.crh-form-group-full {
    grid-column: 1 / -1;
}

.crh-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--crh-dark);
}

.crh-form-group input,
.crh-form-group select,
.crh-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--crh-border);
    border-radius: var(--crh-radius);
    font-size: 14px;
}

.crh-form-group input:focus,
.crh-form-group select:focus,
.crh-form-group textarea:focus {
    outline: none;
    border-color: var(--crh-primary);
    box-shadow: 0 0 0 1px var(--crh-primary);
}

.crh-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.crh-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.crh-form-submit {
    text-align: center;
    margin-top: 20px;
}

/* Messages */
.crh-message {
    padding: 12px;
    border-radius: var(--crh-radius);
    margin: 15px 0;
}

.crh-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.crh-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Styles */
.crh-empresa-dashboard,
.crh-admin-dashboard {
    background: white;
    padding: 20px;
    border-radius: var(--crh-radius);
    box-shadow: var(--crh-shadow);
}

.crh-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--crh-border);
}

.crh-dashboard-actions {
    display: flex;
    gap: 10px;
}

.crh-dashboard-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--crh-light);
    border-radius: var(--crh-radius);
}

/* KPI Cards */
.crh-kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.crh-kpi-card {
    background: white;
    padding: 20px;
    border-radius: var(--crh-radius);
    box-shadow: var(--crh-shadow);
    text-align: center;
    border-left: 4px solid var(--crh-primary);
}

.crh-kpi-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--crh-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crh-kpi-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--crh-primary);
}

/* Charts */
.crh-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.crh-chart-container {
    background: white;
    padding: 20px;
    border-radius: var(--crh-radius);
    box-shadow: var(--crh-shadow);
}

/* Badges */
.crh-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--crh-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crh-badge-success { background: var(--crh-success); color: white; }
.crh-badge-warning { background: var(--crh-warning); color: white; }
.crh-badge-danger { background: var(--crh-danger); color: white; }
.crh-badge-info { background: var(--crh-info); color: white; }
.crh-badge-primary { background: var(--crh-primary); color: white; }

/* Score Badges */
.crh-score {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--crh-radius);
    font-weight: 600;
    font-size: 12px;
}

.crh-score-high { background: var(--crh-success); color: white; }
.crh-score-medium { background: var(--crh-warning); color: white; }
.crh-score-low { background: var(--crh-danger); color: white; }

/* Status Badges */
.crh-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--crh-radius);
    font-size: 12px;
    font-weight: 600;
}

.crh-status-ativa { background: var(--crh-success); color: white; }
.crh-status-pendente { background: var(--crh-warning); color: white; }
.crh-status-suspensa { background: var(--crh-danger); color: white; }
.crh-status-cadastrado { background: var(--crh-info); color: white; }
.crh-status-triagem { background: var(--crh-warning); color: white; }
.crh-status-entrevista { background: var(--crh-primary); color: white; }
.crh-status-aprovado { background: var(--crh-success); color: white; }
.crh-status-recusado { background: var(--crh-danger); color: white; }

/* Tables */
.crh-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.crh-table th,
.crh-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--crh-border);
}

.crh-table th {
    background: var(--crh-light);
    font-weight: 600;
    color: var(--crh-dark);
}

.crh-table tbody tr:hover {
    background: var(--crh-light);
}

/* Responsive */
@media (max-width: 768px) {
    .crh-form-grid {
        grid-template-columns: 1fr;
    }

    .crh-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .crh-dashboard-filters {
        flex-direction: column;
    }

    .crh-kpi-cards {
        grid-template-columns: 1fr;
    }

    .crh-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin specific */
.crh-admin-page {
    background: var(--crh-light);
    min-height: 100vh;
    padding: 20px;
}
