﻿#divTabla td {
    font-size: 12px !important;
}

#divTabla th {
    font-size: 12px !important;
}

#divTabla table.dataTable th {
    background: #d5d5d5;
    border: 1px solid #fff;
    font-size: 14px;
    text-align: left;
}




.loader {
    background-color: white;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: .8;
}
.loader.hidden {
    animation: fadeOut 1s;
    animation-fill-mode: forwards;
}

.loader span {
    height: 2em;
    width: 2em;
    background: white;
    display: block;
    left: 0;
    top: 0;
    border-radius: 50%;
    animation: wave 2s ease-in-out infinite;
}

.loader span:nth-child(1) {
    left: -4.5em;
    animation-delay: 0s;
    background-color: #466EA5;
}

.loader span:nth-child(2) {
    left: -1.5em;
    animation-delay: 0.1s;
    background-color: #E77C22;
}

.loader span:nth-child(3) {
    left: 1.5em;
    animation-delay: 0.2s;
    background-color: #668E83;
}

.loader span:nth-child(4) {
    left: 4.5em;
    animation-delay: 0.3s;
    background-color: #F4F4F4;
}

@keyframes wave {
    0%,
    75%,
    100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(2.5em);
    }
    50% {
        transform: translateY(-2.5em) scale(1.1);
    }
}

@keyframes fadeOut {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.transformed {
    transform: rotate(-45deg);
}

.text-prestaciones {
    color: dimgray;
    font-size: 20px;
    margin-left: 18px;
}

.divBeneficios {
    cursor: pointer;
    margin: 0 auto;
    padding-top: 30px !important;
	padding-bottom: 30px !important;
}

#divListBeneficios i {
    vertical-align: middle;
}

.accordion img {
    margin: 10px;
    vertical-align: middle;
    max-width: 75px;
}


.page-content {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
    padding-top: 0.75rem;
    padding-bottom: 2.75rem;
}

.max-height {
    height: 100vh;
}

/* Works on Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #466EA5 #F4F4F4;
}

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 12px;
}

*::-webkit-scrollbar-track {
    background: #F4F4F4;
}

*::-webkit-scrollbar-thumb {
    background-color: #466EA5;
    border-radius: 20px;
    border: 3px solid #F4F4F4;
}


.linkHolder{
	 color: #676767;
    margin-top: auto;
}

  .linkHolder ul {
        margin-right: 5px;
        margin-bottom: 20%;
        width: 153px;
    }
	
	.linkHolder li {
		list-style:none;
	}

    .linkHolder li i {
        margin: 0 10px;
    }

    .linkHolder li {
        height: 30px;
        margin: 5px 0;
    }

    .linkHolder a {
        color: #676767;
        font-size: 12px;
        margin-left: -26px;
        text-align: right;
        cursor: pointer;
    }
	
.socialHolder {
    height: 15%;
}

    .socialHolder img {
        margin: 5px 10px;
        max-width: 85% !important;
    }
	
.socIcons {
    width: 75%;
    margin: 15px auto;
    text-align: center !important;
}

.socIcons a {
	color: #676767;
	font-size: 25px;
	width: 25px;
	text-align: center;
	margin: 0 6px;
	cursor: pointer;
	display: inline-block;
}


.font-white {
	color: #fff !important;
}

.naranja1{
	color: #E77C22 !important;
}
.slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.note {
    width: 40vw;
    background-color: rgba(0,0,0,0.7);
    margin-left: 5vw;
    color: white;
    padding: 30px;
    position: absolute;
    margin-top: 5vh;
    z-index: 5;
    top: 0;
}

  .note .title {
        font-family: 'rgregular';
        font-size: 30px;
        margin: 10px 0;
    }

    .note .date {
        font-size: larger;
        margin: 10px 0;
    }

    .note p {
        margin: 0;
    }

.inicio,
.gestiones,
.desarrollo,
.contrato,
.trabajo,
.beneficios{
    width: 99%;
    top: 0;
    right: 0;
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: flex-end; */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    max-width: calc(100vw - 180px);
	text-align: right !important;
	color:gray !important;
}


.inicio.active,
.inicio:hover {
    background-color: rgba(255,255,255,.7)  !important;
	color: white;
}

.trabajo.active,
.trabajo:hover {
    background-color: #e77c22  !important;
	color:white !important;
}

.desarrollo.active,
.desarrollo:hover {
    background-color: #3a84b6 !important;
	color:white !important;
}

.gestiones.active,
.gestiones:hover {
    background-color: #70a095  !important;
	color:white !important;
}

.contrato.active,
.contrato:hover {
    background-color: #e77c22  !important;
	color:white !important;
}

.beneficios.active,
.beneficios:hover {
    background-color: #e77c22  !important;
	color:white !important;
}

.contrato.active a,
.gestiones.active a,
.desarrollo.active a,
.trabajo.active a,
.beneficios.active a,
.contrato a:hover,
.gestiones a:hover,
.desarrollo a:hover,
.trabajo a:hover,
.beneficios a:hover {
    color: #ffffff !important;
}
.centrar {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%)
}

.seccionTitulo {
	font-size: 26px;
	color: #466EA5 !important;
}

 .main-header {
	background-color: transparent !important;
	border-color: #ced4da;
	border-bottom: 0px;
}

.section-content {
	height: 100vh;
}

.content-naranja {
	background-color: #ec9754;
    height:100%;
}

.content-azul {
    background-color: #6b9ac4;
    height: 100%;
}

.content-verde {
    background-color: #8fb2ab;
    height: 100%;
}

.main-footer{
	background: #f4f6f9;
	border-top:0px;
}

.select2bs4{
	background-color: #fff !important;
}

.hidden{
	display: none;
}

.userPanel {
    position: fixed;
    right: 0;
    top: 0;
}

.dataBar {
    width: -moz-calc(100vw - 180px);
    width: -webkit-calc(100vw - 180px);
    width: calc(100vw - 180px);
    z-index: 1;
}


.usrData {
    /* height: 310px; */
    background-color: #f0f0f0;
    color: #6b6b6b;
    padding: 20px;
    position: absolute;
    opacity: 0;
    width: 100%;
}

.basicData {
    width: 340px;
    float: left;
    padding-right: 20px;
}


.data {
    /* width: 100%;
    margin-top: 15px; */
    /* height: 100%; */
}

    .data img {
        width: 147px;
        /*height: 147px;*/
        border: 2px solid #c1c1c1;
        float: left;
    }

    .data .dataText {
        padding: 5px;
        width: 170px;
        float: left;
    }

        .data .dataText .userName {
            font-size: 19px;
            color: #4f4f4f;
            margin: 0 2px 7px 2px;
        }

        .data .dataText div {
            font-size: 13px;
            margin: 5px 2px;
            position: relative;
            width: 100%;
            clear: both;
        }

/* Mejoras de accesibilidad y UX */

/* Focus indicators for better accessibility */
.nav-link:focus,
.btn:focus,
a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #007bff;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Improved loading animation */
.loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loader.show {
    display: block;
}

.loader span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    margin: 0 4px;
    animation: loader 1.4s infinite ease-in-out both;
}

.loader span:nth-child(1) { animation-delay: -0.32s; }
.loader span:nth-child(2) { animation-delay: -0.16s; }
.loader span:nth-child(3) { animation-delay: 0s; }
.loader span:nth-child(4) { animation-delay: 0.16s; }

@keyframes loader {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Improved modal accessibility */
.modal-header .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    margin: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-header .close:hover {
    opacity: 1;
}

/* Better responsive design */
@media (max-width: 768px) {
    /* Sidebar responsive */
    .main-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        position: fixed;
        z-index: 1030;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        top: 0;
        left: 0;
    }
    
    .main-sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
    }
    
    /* Content wrapper */
    .content-wrapper {
        margin-left: 0 !important;
        width: 100%;
        transition: margin-left 0.3s ease-in-out;
        padding-top: 60px; /* Espacio para el header fijo */
    }
    
    /* Header responsive */
    .main-header {
        padding-left: 0;
        padding-right: 0;
        z-index: 1031; /* Mayor que el sidebar */
    }
    
    /* Ajustar ancho para evitar scroll horizontal */
    .wrapper {
        width: 100%;
        overflow-x: hidden;
    }
    
    .content-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Asegurar que el contenido no cause scroll horizontal */
    .container, .container-fluid {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ajustar modales para evitar scroll */
    .modal {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    /* Header responsive */
    .main-header {
        padding-left: 0;
        padding-right: 0;
    }
    
    .main-header .navbar-nav {
        flex-direction: row;
        align-items: center;
    }
    
    /* Menu toggle button */
    .nav-link[data-widget="pushmenu"] {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.75rem;
        margin-left: 0.5rem;
        background-color: rgba(255,255,255,0.9);
        border-radius: 6px;
        transition: all 0.2s ease-in-out;
        min-width: 44px;
        min-height: 44px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        position: relative;
        z-index: 1032; /* Mayor que el header */
    }
    
    .nav-link[data-widget="pushmenu"]:hover {
        background-color: rgba(255,255,255,1);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }
    
    .nav-link[data-widget="pushmenu"]:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .nav-link[data-widget="pushmenu"] i {
        font-size: 1.2rem;
        color: #333;
    }
    
    /* Sidebar navigation */
    .nav-sidebar {
        padding: 1rem 0;
    }
    
    .nav-sidebar .nav-link {
        padding: 0.75rem 1.5rem;
        margin: 0.25rem 0.5rem;
        border-radius: 6px;
        font-size: 0.95rem;
    }
    
    /* Brand logo responsive */
    .brand-link {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Bottom links responsive */
    .bottom {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .linkHolder {
        padding: 0;
    }
    
    .linkHolder li {
        margin: 0.5rem 0;
    }
    
    .linkHolder a {
        padding: 0.75rem 1rem;
        border-radius: 6px;
        font-size: 0.9rem;
    }
    
    /* Social icons responsive */
    .socIcons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .socIcons a {
        margin: 0 0.5rem;
        padding: 0.75rem;
        font-size: 1.2rem;
    }
    
    /* Control sidebar responsive */
    .control-sidebar {
        width: 100%;
        max-width: 350px;
        right: -350px;
        transition: right 0.3s ease-in-out;
    }
    
    .control-sidebar.show {
        right: 0;
    }
    
    /* Modal responsive */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    /* Table responsive */
    .table-responsive {
        font-size: 0.9rem;
    }
    
    /* Form responsive */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .main-sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .brand-link {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .nav-sidebar .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .control-sidebar {
        width: 100%;
        max-width: none;
        right: -100%;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn + .btn {
        margin-left: 0;
    }
    
    /* Ajustes adicionales para pantallas muy pequeñas */
    .content-wrapper {
        padding-top: 50px;
    }
    
    .main-header {
        height: 50px;
    }
    
    .nav-link[data-widget="pushmenu"] {
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }
}

/* Medium devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-sidebar {
        width: 250px;
    }
    
    .content-wrapper {
        margin-left: 250px;
    }
    
    .control-sidebar {
        width: 300px;
    }
}

/* Large devices */
@media (min-width: 1025px) {
    .main-sidebar {
        width: 280px;
    }
    
    .content-wrapper {
        margin-left: 280px;
    }
    
    .control-sidebar {
        width: 350px;
    }
}

/* Improved button styles */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Better form accessibility */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Improved table accessibility */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table th[scope="col"],
.table th[scope="row"] {
    font-weight: bold;
}

/* Better navigation for keyboard users */
.nav-link:focus-visible {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}

/* Improved error states */
.has-error .form-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.has-error .help-block {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Better contrast for text */
.text-muted {
    color: #6c757d !important;
}

/* Improved sidebar navigation */
.nav-sidebar .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.125rem 0.5rem;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.nav-sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.nav-sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.nav-sidebar .nav-link:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #007bff;
    transform: scaleY(0);
    transition: transform 0.2s ease-in-out;
}

.nav-sidebar .nav-link:hover:before,
.nav-sidebar .nav-link.active:before {
    transform: scaleY(1);
}

/* Mobile overlay */
.mobile-overlay {
    backdrop-filter: blur(2px);
}

/* Body states */
body.sidebar-open {
    overflow: hidden;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .nav-sidebar .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .nav-sidebar .nav-link i {
        margin-right: 0.75rem;
        width: 20px;
        text-align: center;
    }
    
    /* Better visual feedback */
    .nav-sidebar .nav-link:active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(0.98);
    }
    
    /* Smooth transitions */
    .main-sidebar,
    .control-sidebar,
    .content-wrapper {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Better social media icons */
.socIcons a {
    display: inline-block;
    margin: 0 0.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

.socIcons a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Improved chatbot styling */
#embedded_messenger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#message_header {
    cursor: pointer;
    user-select: none;
}

/* Better print styles */
@media print {
    .main-header,
    .main-sidebar,
    .control-sidebar,
    .loader,
    #embedded_messenger {
        display: none !important;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover {
        border-color: currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loader span {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #343a40;
        color: #fff;
    }
    
    .modal-header {
        border-bottom-color: #495057;
    }
    
    .modal-footer {
        border-top-color: #495057;
    }
}

/* Better focus management for modals */
.modal:focus {
    outline: none;
}

.modal-dialog:focus {
    outline: none;
}

/* Improved data table accessibility */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    margin: 0.5rem 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 0.125rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #007bff;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Better form validation styling */
.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Improved accessibility for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Better keyboard navigation */
[tabindex="-1"]:focus {
    outline: none !important;
}

/* Improved link styling */
a:not([href]):not([tabindex]) {
    color: inherit;
    text-decoration: none;
}

a:not([href]):not([tabindex]):hover,
a:not([href]):not([tabindex]):focus {
    color: inherit;
    text-decoration: none;
}

/* Better responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Improved text selection */
::selection {
    background-color: #007bff;
    color: #fff;
}

::-moz-selection {
    background-color: #007bff;
    color: #fff;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Ensure wrapper doesn't cause scroll */
    .wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Better touch targets */
    .btn, .nav-link, .form-control {
        min-height: 44px;
    }
    
    /* Improved spacing */
    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    /* Better modal experience */
    .modal {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    /* Improved table experience */
    .table-responsive {
        border: none;
        overflow-x: auto;
    }
    
    .table-responsive .table {
        font-size: 0.875rem;
        min-width: 100%;
    }
    
    /* Better form experience */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        max-width: 100%;
    }
    
    /* Improved card experience */
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        max-width: 100%;
    }
    
    /* Better alert experience */
    .alert {
        margin-bottom: 1rem;
        border-radius: 6px;
        max-width: 100%;
    }
    
    /* Ensure menu button is always visible */
    .nav-link[data-widget="pushmenu"] {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Fix any potential overflow issues */
    * {
        box-sizing: border-box;
    }
    
    /* Ensure content doesn't overflow */
    .content-wrapper > * {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Prevent horizontal scroll on all elements */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Ensure tables don't cause overflow */
    .table {
        max-width: 100%;
        table-layout: fixed;
    }
    
    /* Ensure images don't cause overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure forms don't cause overflow */
    form {
        max-width: 100%;
    }
    
    /* Ensure modals don't cause overflow */
    .modal-content {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Landscape orientation improvements */
@media (max-width: 768px) and (orientation: landscape) {
    .main-sidebar {
        width: 250px;
    }
    
    .nav-sidebar .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Sidebar Navigation Responsive Styles */
.main-sidebar .nav {
    background: url(../Images/bg_sidebar.jpg) no-repeat center center;
    background-size: cover;
    height: 100%;
    width: 100%;
    position: relative;
}

/* Responsive adjustments for sidebar navigation */
@media (max-width: 768px) {
    .main-sidebar .nav {
        background-size: contain;
        background-position: left center;
    }
}

@media (max-width: 576px) {
    .main-sidebar .nav {
        background-size: 200px auto;
        background-position: left top;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-sidebar .nav {
        background-size: 80% auto;
        background-position: left center;
    }
}

@media (min-width: 1025px) {
    .main-sidebar .nav {
        background-size: cover;
        background-position: center center;
    }
}

/* Modern Sidebar Styles */
.modern-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-right: 1px solid #e9ecef;
}

.modern-sidebar.collapsed {
    width: 70px;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #466EA5 0%, #5a7bc8 100%);
    color: white;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.brand-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.toggle-icon {
    width: 20px;
    height: 2px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.toggle-icon::before {
    top: -6px;
}

.toggle-icon::after {
    bottom: -6px;
}

.modern-sidebar.collapsed .toggle-icon {
    transform: rotate(45deg);
}

.modern-sidebar.collapsed .toggle-icon::before {
    transform: rotate(90deg);
    top: 0;
}

.modern-sidebar.collapsed .toggle-icon::after {
    transform: rotate(90deg);
    bottom: 0;
}

/* Navigation */
.sidebar-navigation {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-section {
    padding: 0 1rem;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin: 0 0 0.75rem 0;
    padding-left: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #466EA5 0%, #5a7bc8 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.nav-item:hover {
    background: rgba(70, 110, 165, 0.08);
    color: #466EA5;
    transform: translateX(4px);
    border-color: rgba(70, 110, 165, 0.2);
    box-shadow: 0 2px 8px rgba(70, 110, 165, 0.15);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(70, 110, 165, 0.1) 0%, rgba(90, 123, 200, 0.1) 100%);
    color: #466EA5;
    border-color: rgba(70, 110, 165, 0.3);
    box-shadow: 0 4px 12px rgba(70, 110, 165, 0.2);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    color: #466EA5;
    transform: scale(1.1);
}

.nav-item.active .nav-icon {
    color: #466EA5;
}

.nav-text {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Resources Section */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resource-item:hover {
    background: #ffffff;
    color: #466EA5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(70, 110, 165, 0.15);
    border-color: rgba(70, 110, 165, 0.3);
}

.resource-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #466EA5 0%, #5a7bc8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(70, 110, 165, 0.3);
    transition: all 0.3s ease;
}

.resource-item:hover .resource-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(70, 110, 165, 0.4);
}

.resource-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.resource-item:hover .resource-title {
    color: #466EA5;
}

.resource-subtitle {
    font-size: 0.75rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.resource-item:hover .resource-subtitle {
    color: #466EA5;
}

/* Social Media Section */
.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #64b5f6 100%);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #42a5f5 100%);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.sidebar-footer {
    padding: 1.5rem 1rem;
    border-top: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.footer-logo {
    margin-bottom: 0.75rem;
}

.footer-image {
    height: 35px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-image:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-copyright {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Collapsed State */
.modern-sidebar.collapsed .brand-text,
.modern-sidebar.collapsed .nav-text,
.modern-sidebar.collapsed .section-title,
.modern-sidebar.collapsed .resource-content,
.modern-sidebar.collapsed .footer-text {
    display: none;
}

.modern-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
}

.modern-sidebar.collapsed .resource-item {
    justify-content: center;
    padding: 0.75rem;
}

.modern-sidebar.collapsed .social-links {
    flex-direction: column;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .modern-sidebar.show {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
    
    .main-header {
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .modern-sidebar {
        width: 100%;
    }
    
    .brand-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .nav-item {
        padding: 1rem;
    }
    
    .resource-item {
        padding: 1rem;
    }
}

/* Content Wrapper Adjustment */
.content-wrapper {
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-sidebar.collapsed + .content-wrapper {
    margin-left: 70px;
}

/* Main Header Adjustment */
.main-header {
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-sidebar.collapsed ~ .main-header {
    margin-left: 70px;
}

/* Mobile Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Animation for menu items */
.nav-item,
.resource-item {
    animation: slideInLeft 0.3s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus styles for accessibility */
.nav-item:focus,
.resource-item:focus,
.social-link:focus,
.sidebar-toggle:focus {
    outline: 2px solid #466EA5;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modern-sidebar {
        border: 2px solid #466EA5;
    }
    
    .nav-item:hover,
    .resource-item:hover {
        background: #466EA5;
        color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modern-sidebar,
    .nav-item,
    .resource-item,
    .social-link,
    .sidebar-toggle {
        transition: none;
    }
    
    .nav-item,
    .resource-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Legacy Menu Adaptation for Modern Sidebar */
.main-menu .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
}

.main-menu .nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #466EA5 0%, #5a7bc8 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.main-menu .nav-item:hover {
    background: rgba(70, 110, 165, 0.08);
    color: #466EA5;
    transform: translateX(4px);
    border-color: rgba(70, 110, 165, 0.2);
    box-shadow: 0 2px 8px rgba(70, 110, 165, 0.15);
}

.main-menu .nav-item:hover::before {
    transform: scaleY(1);
}

.main-menu .nav-item.active {
    background: linear-gradient(135deg, rgba(70, 110, 165, 0.1) 0%, rgba(90, 123, 200, 0.1) 100%);
    color: #466EA5;
    border-color: rgba(70, 110, 165, 0.3);
    box-shadow: 0 4px 12px rgba(70, 110, 165, 0.2);
}

.main-menu .nav-item.active::before {
    transform: scaleY(1);
}

/* Adapt existing menu structure */
.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
}

.main-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #466EA5 0%, #5a7bc8 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.main-menu a:hover {
    background: rgba(70, 110, 165, 0.08);
    color: #466EA5;
    transform: translateX(4px);
    border-color: rgba(70, 110, 165, 0.2);
    box-shadow: 0 2px 8px rgba(70, 110, 165, 0.15);
}

.main-menu a:hover::before {
    transform: scaleY(1);
}

.main-menu a.active {
    background: linear-gradient(135deg, rgba(70, 110, 165, 0.1) 0%, rgba(90, 123, 200, 0.1) 100%);
    color: #466EA5;
    border-color: rgba(70, 110, 165, 0.3);
    box-shadow: 0 4px 12px rgba(70, 110, 165, 0.2);
}

.main-menu a.active::before {
    transform: scaleY(1);
}

/* Icon styling for existing menu */
.main-menu i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #6c757d;
    transition: all 0.3s ease;
}

.main-menu a:hover i {
    color: #466EA5;
    transform: scale(1.1);
}

.main-menu a.active i {
    color: #466EA5;
}

/* Submenu styling */
.main-menu .nav-item ul {
    margin-left: 1rem;
    border-left: 2px solid #e9ecef;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.main-menu .nav-item ul a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.main-menu .nav-item ul a:hover {
    opacity: 1;
    background: rgba(70, 110, 165, 0.05);
}

/* Collapsed state for existing menu */
.modern-sidebar.collapsed .main-menu .nav-item {
    justify-content: center;
    padding: 0.75rem;
}

.modern-sidebar.collapsed .main-menu a {
    justify-content: center;
    padding: 0.75rem;
}

.modern-sidebar.collapsed .main-menu .nav-item ul {
    display: none;
}