body {
    background: #f4f7fe !important;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #333;
    overflow-x: hidden;
}

.sidebar {
    width: 250px;
    background: #ffffff;
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-right: 1px solid #e9ecef;
    z-index: 1000;
}

.sidebar-header h3 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 24px;
}

.nav-link {
    color: #6b7280;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link i {
    margin-right: 10px;
    font-size: 16px;
}

.nav-link.active {
    color: #ffffff !important;
    background: #1e40af !important;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px; /* Añadido para separar el item principal del submenú */
}

.nav-link:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.nav-link[aria-expanded="false"] .fa-chevron-down {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.submenu {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding-left: 20px;
    margin-top: 10px; /* Añadido para más separación del item principal */
}

.submenu .nav-link {
    font-size: 14px;
    padding: 8px 15px; /* Reducido el padding vertical para un fondo azul más compacto */
    color: #6b7280;
}

.submenu .nav-link i {
    margin-right: 8px;
    font-size: 14px;
}

.submenu .nav-link.active {
    color: #ffffff !important;
    background: #1e40af !important;
    margin-right: 10px;
}

.submenu .nav-link:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

.main-content {
    margin-left: 270px;
    padding: 30px 30px 30px 40px;
    width: calc(100% - 270px);
    background: #f4f7fe !important;
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h2 {
    color: #1e40af;
    font-size: 28px;
    font-weight: 600;
}

.header-right span {
    color: #6b7280;
    margin: 0 8px;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.header-right span:hover {
    color: #1e40af;
}

h3 {
    color: #1e3a8a;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.card {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    padding: 25px;
}

.card-body h5 {
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.card-body p {
    font-size: 24px;
    font-weight: 600;
    color: #1e3a8a;
}

.form-control-modern {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 10px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-modern:focus {
    border-color: #1e40af !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1) !important;
    outline: none;
}

.btn-modern {
    border-radius: 8px !important;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary.btn-modern {
    background-color: #1e40af !important;
    border: none !important;
}

.btn-primary.btn-modern:hover {
    background-color: #1e3a8a !important;
    transform: translateY(-2px);
}

.btn-danger.btn-modern {
    background-color: #ef4444 !important;
    border: none !important;
}

.btn-danger.btn-modern:hover {
    background-color: #dc2626 !important;
    transform: translateY(-2px);
}

.table-modern {
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.table-modern thead th {
    background: #f8fafc !important;
    color: #6b7280;
    font-weight: 500;
    padding: 15px;
    font-size: 14px;
    border-bottom: 2px solid #e5e7eb !important;
}

.table-modern tbody td {
    color: #1e3a8a;
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6 !important;
}

.table-modern tbody tr:last-child td {
    border-bottom: none !important;
}

.table-modern tbody tr:hover {
    background: #f8fafc !important;
}

.container-fluid {
    background: #f4f7fe !important;
}

.row {
    background: transparent !important;
}

/* Estilos para el contenedor de subida de imagen */
.image-upload-container {
    text-align: center;
}

.image-preview {
    width: 300px;
    height: 300px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}