:root {
    --primary-color-empleador: #3EA055;
    --secondary-color-empleador: #6AA121;
    --accent-color-empleador: #e6f4ea;
    --light-bg-empleador: #f8f9fa;
    --dark-text-empleador: #333;
}

body {
    background: #f7f9fa;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar para Empleador */
.sidebar-empleador {
    width: 250px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.08);
    min-height: 100vh;
    padding-top: 1.5rem;
    transition: transform 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 1050;
}

.logo-box {
    justify-content: center;
}

.sidebar-empleador .nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 0.9rem 2rem;
    border-radius: 0;
    margin-bottom: 0.2rem;
    transition: all 0.2s ease;
}

.sidebar-empleador .nav-link.active, 
.sidebar-empleador .nav-link:hover {
    background: var(--accent-color-empleador);
    color: var(--primary-color-empleador);
    border-right: 3px solid var(--primary-color-empleador);
}

.sidebar-empleador .nav-link i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

/* Main Content para Empleador */
.main-empleador {
    flex: 1;
    padding: 2rem;
    background: #f7f9fa;
    margin-left: 250px;
}

/* Header para Empleador */
.header-empleador {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-empleador .welcome-banner h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.header-empleador .welcome-banner p {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0;
}

/* User Profile Dropdown */
.user-profile-empleador {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile-empleador .dropdown-toggle {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-weight: 500;
}

.user-profile-empleador .dropdown-toggle img {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.user-profile-empleador .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.user-profile-empleador .dropdown-item {
    padding: 0.5rem 1rem;
    color: #4a5568;
    font-size: 0.875rem;
}

.user-profile-empleador .dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.user-profile-empleador .dropdown-item:hover {
    background-color: var(--accent-color-empleador);
    color: var(--primary-color-empleador);
}

/* Hamburger Button */
.hamburger-btn {
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 1051;
    background: var(--primary-color-empleador);
    border: none;
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hamburger-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(62, 160, 85, 0.4);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s;
}

/* Responsive Styles */
@media (min-width: 992px) {
    .hamburger-btn {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar-empleador {
        transform: translateX(-100%);
    }

    .sidebar-empleador.sidebar-open {
        transform: translateX(0);
    }

    .main-empleador {
        margin-left: 0;
        padding: 1rem;
    }

    .header-empleador {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
}

/* General Card styles */
.card {
    border-radius: 1.2rem !important;
    border: none;
    box-shadow: 0 2px 12px rgba(62, 160, 85, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-header h5 {
    font-size: 1rem;
    color: #2d3748;
}

.card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
}

.stat-card .icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .icon-wrapper i {
    font-size: 1.25rem;
}

.stat-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.stat-card p {
    font-size: 0.875rem;
    color: #718096;
}

/* Form Styling Improvements */
.form-section-card {
    margin-bottom: 2rem;
}

.form-section-card .card-header {
    background-color: var(--accent-color-empleador);
    border-bottom: 1px solid #dcecdc;
    color: var(--primary-color-empleador);
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1.5px solid #ced4da;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color-empleador);
    box-shadow: 0 0 0 3px rgba(62, 160, 85, 0.2);
}

.input-group-text {
    border-radius: 0.75rem 0 0 0.75rem;
    background-color: #e9ecef;
    border: 1.5px solid #ced4da;
    border-right: none;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
}

/* Botones del formulario */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
}

/* Estilo para el switch de estado */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    background-color: #ccc;
    border-color: #ccc;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color-empleador);
    border-color: var(--primary-color-empleador);
}

/* ================================
   ESTADÍSTICAS - TARJETAS Y GRÁFICAS
   ================================ */

/* Tarjetas de estadísticas principales */
.border-left-primary {
    border-left: 0.25rem solid #007bff !important;
}

.border-left-success {
    border-left: 0.25rem solid #28a745 !important;
}

.border-left-info {
    border-left: 0.25rem solid #17a2b8 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #ffc107 !important;
}

.border-left-danger {
    border-left: 0.25rem solid #dc3545 !important;
}

/* Estilos para las tarjetas de estadísticas */
.card.border-left-primary,
.card.border-left-success,
.card.border-left-info,
.card.border-left-warning,
.card.border-left-danger {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.border-left-primary:hover,
.card.border-left-success:hover,
.card.border-left-info:hover,
.card.border-left-warning:hover,
.card.border-left-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Textos de las tarjetas */
.text-xs {
    font-size: 0.7rem !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Iconos de las tarjetas */
.fa-2x {
    font-size: 2em !important;
}

/* Contenedor de gráficas */
.card.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

/* Responsive para estadísticas */
@media (max-width: 768px) {
    .col-xl-3 {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .h5 {
        font-size: 1.25rem;
    }
    
    .text-xs {
        font-size: 0.6rem !important;
    }
}

/* Animaciones para contadores */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#contadorPostulaciones,
#contadorOfertas {
    animation: countUp 0.5s ease-out;
}

/* Estilos para tablas de estadísticas */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fc;
    border-color: #e3e6f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.table td {
    border-color: #e3e6f0;
    vertical-align: middle;
}

/* Badges para estados */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-success {
    background-color: #28a745;
}

.badge-secondary {
    background-color: #6c757d;
}

/* Estilos para las gráficas */
canvas {
    max-height: 400px;
}

/* Contenedor de estadísticas */
.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Cards y Listas */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem;
}

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

/* Botones */
.btn-outline-primary,
.btn-outline-success {
    border-width: 1.5px;
    font-weight: 500;
    padding: 0.375rem 1rem;
}

.btn-sm {
    font-size: 0.875rem;
}

/* Quick Actions */
.quick-action-card {
    transition: all 0.2s ease;
    border-radius: 0.75rem;
}

.quick-action-card:hover {
    transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.card {
    animation: fadeIn 0.5s ease-out;
}
