/* RH Styles - Prefixed with rh- */
.rh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rh-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.rh-card-header {
    background: linear-gradient(135deg, #1a3a5f, #2c5c8a);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.rh-card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.rh-card-body {
    padding: 20px;
}

.rh-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rh-stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5c8a;
    transition: transform 0.3s ease;
}

.rh-stat-card:hover {
    transform: translateY(-5px);
}

.rh-stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5c8a;
    margin-bottom: 10px;
}

.rh-stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rh-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.rh-table th,
.rh-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.rh-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c5c8a;
}

.rh-table tr:hover {
    background-color: #f8f9fa;
}

.rh-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rh-badge-success {
    background-color: #d4edda;
    color: #155724;
}

.rh-badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.rh-badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.rh-badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.rh-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.rh-btn-primary {
    background: linear-gradient(135deg, #1a3a5f, #2c5c8a);
    color: white;
}

.rh-btn-primary:hover {
    background: linear-gradient(135deg, #2c5c8a, #1a3a5f);
    transform: translateY(-2px);
}

.rh-btn-success {
    background-color: #28a745;
    color: white;
}

.rh-btn-success:hover {
    background-color: #218838;
}

.rh-btn-danger {
    background-color: #dc3545;
    color: white;
}

.rh-btn-danger:hover {
    background-color: #c82333;
}

.rh-btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.rh-form-group {
    margin-bottom: 20px;
}

.rh-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.rh-form-input,
.rh-form-select,
.rh-form-textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.rh-form-input:focus,
.rh-form-select:focus,
.rh-form-textarea:focus {
    outline: none;
    border-color: #2c5c8a;
}

.rh-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.rh-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.rh-alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.rh-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rh-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rh-alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.rh-grid {
    display: grid;
    gap: 20px;
}

.rh-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rh-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.rh-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rh-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a5f, #2c5c8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.rh-profile-info h2 {
    margin: 0 0 10px 0;
    color: #2c5c8a;
}

.rh-profile-info p {
    margin: 5px 0;
    color: #666;
}

.rh-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.rh-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.rh-tab.active {
    color: #2c5c8a;
    border-bottom-color: #2c5c8a;
}

.rh-tab-content {
    display: none;
}

.rh-tab-content.active {
    display: block;
}

.rh-chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.rh-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.rh-filter-select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background: white;
}

.rh-search-input {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    min-width: 250px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rh-stats-grid {
        grid-template-columns: 1fr;
    }

    .rh-grid-2,
    .rh-grid-3 {
        grid-template-columns: 1fr;
    }

    .rh-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .rh-table {
        font-size: 0.9rem;
    }

    .rh-table th,
    .rh-table td {
        padding: 8px 10px;
    }

    .rh-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .rh-search-input {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .rh-container {
        padding: 10px;
    }

    .rh-card-body {
        padding: 15px;
    }

    .rh-tabs {
        flex-direction: column;
    }

    .rh-tab {
        text-align: left;
    }
}

/* Loading states */
.rh-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5c8a;
    border-radius: 50%;
    animation: rh-spin 1s linear infinite;
}

@keyframes rh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    .rh-btn,
    .rh-filter-bar {
        display: none;
    }

    .rh-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Estilos para o menu RH */
.auth-dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
}

.auth-nav-dropdown .auth-nav-dropdown {
    position: relative;
}

.auth-nav-dropdown .auth-nav-dropdown .auth-dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: #2c5c8a;
    min-width: 200px;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
}

.auth-nav-dropdown .auth-nav-dropdown:hover .auth-dropdown-menu {
    max-height: 500px;
}

/* Ícones específicos para RH */
.fa-users-cog:before { content: "\f509"; }
.fa-user-tie:before { content: "\f508"; }
.fa-umbrella-beach:before { content: "\f5ca"; }
.fa-money-bill-wave:before { content: "\f53a"; }
.fa-hand-holding-usd:before { content: "\f4c0"; }