/* Base styles */
body {
    font-family: 'Cabin', Arial, sans-serif;
    background: #304933;
    color: #E5D0E1;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
    background-color: #304933;
    padding: 2rem 1rem;
}
header.bg-dark {
    padding: 1rem 0;
    border-bottom: 3px solid #FF5D0A;
}

header .container {
    min-height: 60px;
}

header h1.h4 {
    margin: 0;
    font-size: 1.5rem;
}

h1 {
    font-family: 'Ubuntu', sans-serif;
    color: #FF5D0A;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px #304933, 0 0 20px #304933, 0 0 30px #304933;
    animation: text-glow 2s ease-out infinite alternate;
}

/* Navigation styles */
nav {
    background-color: #304933;
}

nav .navbar-nav .nav-link {
    color: #E5D0E1;
}

nav .navbar-nav .nav-link:hover {
    color: #FF5D0A;
}

/* Main content styles */
main {
    flex: 1;
    padding: 1rem;
    text-align: center;
}

/* Improved navigation styles */
#main-nav {
    background: linear-gradient(to right, #304933, #FF5D0A);
    box-shadow: 0 0 15px rgba(255, 93, 10, 0.3);
    width: 100%;
}

.navbar>.container, .navbar>.container-fluid, .navbar>.container-lg, .navbar>.container-md, .navbar>.container-sm, .navbar>.container-xl, .navbar>.container-xxl {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 992px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 960px;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        align-items: center;
        justify-content: center;
    }
}

#main-nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    justify-content: center;
}

#main-nav li {
    margin: 5px;
}

#main-nav a {
    color: #E5D0E1;
    text-decoration: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 93, 10, 0.5);
    display: block;
    text-align: center;
}

#main-nav a:hover {
    background-color: rgba(255, 93, 10, 0.2);
    box-shadow: 0 0 10px rgba(255, 93, 10, 0.5);
    transform: translateY(-2px);
}

#main-nav a.active {
    background-color: rgba(255, 93, 10, 0.3);
    box-shadow: 0 0 15px rgba(255, 93, 10, 0.7);
}

/* Footer styles */
footer {
    background-color: #304933;
    color: #E5D0E1;
    text-align: center;
    padding: 1rem;
}

/* Form styles */
.login-form, .register-form {
    background: linear-gradient(#FF5D0A, #304933);
    border: 6px solid #FF5D0A;
    box-shadow: 0 0 15px #E5D0E1;
    border-radius: 5px;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    animation: form-entry 1s ease-out;
}

.login-form h2, .register-form h2 {
    font-family: 'Ubuntu', sans-serif;
    color: #E5D0E1;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px #304933, 0 0 20px #304933, 0 0 30px #304933;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #E5D0E1;
}

.form-control {
    background: linear-gradient(#304933, #222);
    border: 1px solid #FF5D0A;
    border-radius: 5px;
    box-shadow: 0 2px 0 #304933;
    color: #E5D0E1;
    font-family: 'Cabin', helvetica, arial, sans-serif;
    font-size: 1.3rem;
    padding: 10px;
    width: 100%;
    text-shadow: 0 -1px 0 #304933;
}

.form-control:focus {
    background: linear-gradient(#304933, #222922);
    border-color: #FF5D0A;
    box-shadow: 0 0 5px rgba(255, 93, 10, .2), inset 0 0 5px rgba(255, 93, 10, .1), 0 2px 0 #304933;
    color: #E5D0E1;
    outline: none;
    animation: box-glow 0.5s ease-out;
}

.btn-primary {
    background: linear-gradient(#304933, #222);
    border: 1px solid #FF5D0A;
    border-left-color: #304933; 
    border-radius: 5px;
    box-shadow: 0 2px 0 #304933;
    color: #E5D0E1;
    font-family: 'Cabin', helvetica, arial, sans-serif;
    font-size: 1.3rem;
    padding: 10px;
    width: 100%;
    text-shadow: 0 -1px 0 #304933;
    transition: 1s all;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(#304933, #292929);
    color: #FF5D0A;
    animation: drop-glow 1s ease-in-out;
}

.btn-primary:active {
    background: linear-gradient(#304933, #292929);
    box-shadow: 0 1px 0 #304933, inset 1px 0 1px #222;
    transform: translateY(1px);
}

/* Decorative elements */
.circle {
    background: #304933;
    border-radius: 50%;
    border: 10px solid #FF5D0A;
    box-shadow: 0 0 0 2px #304933, 0 0 0 6px #E5D0E1;
    height: 500px;
    width: 500px;
    position: fixed;
    top: 20px;
    left: 50%;
    margin-left: -250px;
    opacity: 0.4;
    z-index: -3;
}

.inner-circle {
    background: #304933; 
    border-radius: 50%;
    border: 36px solid #FF5D0A; 
    height: 460px; 
    width: 460px; 
    margin: 10px;
    position: relative;
}

.inner-circle::before, .inner-circle::after {
    content: '';
    background: #304933;
    position: absolute;
}

.inner-circle::before {
    width: 240px;
    height: 480px;
    top: 0;
    left: 0;
}

.inner-circle::after {
    width: 480px;
    height: 240px; 
    top: 0;
    left: 0; 
}

.hexagons {
    color: #304933;
    font-size: 5.1rem;
    letter-spacing: -0.2em;
    line-height: 0.7;
    position: fixed;
    text-shadow: 0 0 6px #FF5D0A;
    top: 310px; 
    width: 100%;
    transform: perspective(600px) rotateX(60deg) scale(1.4);
    z-index: -3;
}

/* Heippi metrics styles */
.heippi-metrics {
    font-family: 'ubuntu', Trebuchet MS, Sans-Serif;
    color: #E5D0E1;
    text-align: center;
}

.heippi-metrics .informe {
    background-color: #FF5D0A;
    min-height: 100%;
    padding: 1rem 1% 1rem;
    text-align: left;
}

.heippi-metrics .contenedor {
    width: 100%;
    background-color: #304933;
    text-align: center;     
}

.heippi-metrics .metricas {
    background-color: #E5D0E1;
    background-image: url('../img/color-bar.png'), url('../img/color-bar.png');
    background-size: 100% .5rem;
    background-position: top, bottom;
    background-repeat: no-repeat;
    min-height: 100%;
    box-shadow: 0 0 .5rem rgba(0,0,0,.5) inset;
    padding: 2rem 1% 1rem;
}

.heippi-metrics .graficas {
    box-shadow: inset 0 0 10px rgba(180,180,180,.30);
    background-color: #304933;
    padding: 1% 1% 2%;
}

.heippi-metrics .graficas .titulo-seccion {
    font-size: 1.3rem;
    color: #FF5D0A;
    padding: 0.3rem;
}

.heippi-metrics .graficas .box {
    border: 1px solid #E5D0E1;
    background-color: #304933;
    width: 22%;
    display: inline-block;
    vertical-align: top;
    margin: 0.5%;
    font-size: 1rem;
    line-height: 100%;
}

.heippi-metrics .graficas .picos {
    width: 100%;
    overflow-x: auto;
}

.heippi-metrics .graficas .titulo {
    font-size: 0.8rem;
    padding: 1rem 2%;
    background-color: #FF5D0A;
    border-bottom: 1px solid #E5D0E1;
    vertical-align: middle;
}

.heippi-metrics .graficas .valor {
    color: #E5D0E1;
    font-size: 70%;
    line-height: 2rem;
}

.heippi-metrics .graficas table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.heippi-metrics .graficas th,
.heippi-metrics .graficas td {
    border: 1px solid #E5D0E1;
    padding: 8px;
    text-align: left;
}

.heippi-metrics .graficas th {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.heippi-metrics .graficas th::after {
    content: '\2195';
    position: absolute;
    right: 8px;
    opacity: 0.5;
}

.heippi-metrics .graficas th.sort-asc::after {
    content: '\2191';
    opacity: 1;
}

.heippi-metrics .graficas th.sort-desc::after {
    content: '\2193';
    opacity: 1;
}

/* Animations */
@keyframes text-glow {
    0% {
        color: #FF5D0A;
        text-shadow: 0 0 10px #304933, 0 0 20px #304933, 0 0 30px #304933;
    }
    100% {
        color: #E5D0E1;
        text-shadow: 0 0 20px rgba(255, 93, 10, .6), 0 0 10px rgba(255, 93, 10, .4), 0 2px 0 #304933;
    }
}

@keyframes form-entry {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes box-glow {
    0% {
        border-color: #FF5D0A;
        box-shadow: 0 0 5px rgba(255, 93, 10, .2), inset 0 0 5px rgba(255, 93, 10, .1), 0 2px 0 #304933;
    }
    100% {
        border-color: #E5D0E1;
        box-shadow: 0 0 20px rgba(255, 93, 10, .6), inset 0 0 10px rgba(255, 93, 10, .4), 0 2px 0 #304933;
    }
}

@keyframes drop-glow {
    0% {
        color: #FF5D0A;
        box-shadow: 0 0 15px #FF5D0A, 0 0 30px #FF5D0A;
    }
    100% {
        color: #E5D0E1;
        box-shadow: 0 0 15px #E5D0E1, 0 0 30px #E5D0E1;
    }
}

/* Animated footer */
#animated-footer {
    background-color: #FF5D0A !important;
    color: #E5D0E1 !important;
    padding: 1.5rem 0 !important;
    border: none !important;
    box-shadow: none !important;
}

#animated-footer::before,
#animated-footer::after {
    display: none !important;
}
.footer-content {
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease-in-out;
}

.footer-subtitle {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-copyright {
    font-size: 0.75rem;
    transition: color 0.3s ease-in-out;
}

#animated-footer:hover {
    box-shadow: 0 -5px 15px rgba(255, 93, 10, 0.3);
}

#animated-footer:hover .footer-title,
.footer-copyright {
            transition: color 0.3s ease-in-out;
        }

        #animated-footer:hover .footer-copyright {
            color: #FF5D0A; /* Cambio aquí: color naranja al hacer hover */
        }

/* Responsive styles */
#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

#menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FF5D0A;
    margin: 5px 0;
}

@media (max-width: 991px) {
    #main-nav {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 250px;
        height: calc(100vh - 56px);
        background: #304933;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    #main-nav.show {
        left: 0;
    }

    #main-nav .navbar-nav {
        padding-top: 20px;
    }

    #main-nav .nav-item {
        padding: 10px 20px;
    }

    #main-nav .nav-link {
        color: #E5D0E1;
        font-size: 1.1rem;
    }

    .navbar-toggler {
        display: block;
    }
}

@media (max-width: 480px) {
    .login-form h2, .register-form h2 {
        font-size: 1.8rem;
    }

    .circle {
        width: 200px;
        height: 200px;
        margin-left: -100px;
    }

    .inner-circle {
        width: 160px;
        height: 160px;
    }

    .hexagons {
        font-size: 2rem;
        top: 150px;
    }
}

/* Estilos adicionales para el formulario de registro */
#register-form {
    max-width: 300px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: #E5D0E1;
}

input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #FF5D0A;
    background-color: #304933;
    color: #E5D0E1;
    border-radius: 4px;
}

button {
    padding: 10px;
    background-color: #FF5D0A;
    color: #304933;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #E5D0E1;
}

/* Estilos para el panel de administración */
.admin-panel {
    background-color: #304933;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.admin-panel h2 {
    color: #FF5D0A;
    margin-top: 0;
    font-size: 1.8rem;
    text-align: center;
}

/* Estadísticas */
.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background-color: #304933;
    border-radius: 4px;
    padding: 15px;
    width: 30%;
    text-align: center;
    margin-bottom: 10px;
}

.stat-box h3 {
    margin: 0;
    color: #FF5D0A;
    font-size: 1rem;
}

.stat-box p {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0 0;
    color: #E5D0E1;
}

/* Tabla de empleados */
.employee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.employee-table th, 
.employee-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E5D0E1;
}

.employee-table th {
    background-color: #FF5D0A;
    color: #304933;
    font-weight: bold;
}

.employee-table tr:nth-child(even) {
    background-color: #304933;
}

.employee-table tr:hover {
    background-color: #FF5D0A;
    color: #304933;
}

/* Responsive para el panel de administración */
@media (max-width: 768px) {
    .stat-box {
        width: 100%;
    }
    
    .employee-table {
        font-size: 14px;
    }
    
    .employee-table th, 
    .employee-table td {
        padding: 8px;
    }
}

/* Estilos para el formulario de registro de asistencia */
.attendance-form {
    background-color: #304933;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 20px auto;
}

.attendance-form h2 {
    color: #FF5D0A;
    margin-top: 0;
    font-size: 1.8rem;
    text-align: center;
}

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

.attendance-form label {
    display: block;
    margin-bottom: 5px;
    color: #E5D0E1;
}

.attendance-form input[type="text"],
.attendance-form input[type="date"],
.attendance-form input[type="time"],
.attendance-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #FF5D0A;
    background-color: #304933;
    color: #E5D0E1;
    border-radius: 4px;
}

.attendance-form button {
    width: 100%;
    padding: 10px;
    background-color: #FF5D0A;
    color: #304933;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.attendance-form button:hover {
    background-color: #E5D0E1;
    color: #304933;
}

/* Estilos para mensajes de error o éxito */
.message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.message.success {
    background-color: #FF5D0A;
    color: #304933;
}

.message.error {
    background-color: #E5D0E1;
    color: #304933;
}

/* Estilos para el escáner QR */
.qr-scanner {
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.qr-scanner video {
    width: 100%;
    border: 2px solid #FF5D0A;
    border-radius: 8px;
}

.qr-scanner button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #FF5D0A;
    color: #304933;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.qr-scanner button:hover {
    background-color: #E5D0E1;
    color: #304933;
}



/* Nuevos estilos para centrar el título en pantallas grandes */
@media (min-width: 992px) {
    header {
        padding: 2rem 1rem;
    }
    header.bg-dark {
        padding: 0.75rem 0;
        border-bottom: 3px solid #FF5D0A;  /* Changed from #304933 to #FF5D0A */
    }
    
    header .container {
        min-height: 50px;
    }
    header h1 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    header h1.h4 {
        font-size: 1.3rem;
    }
    #menu-toggle {
        position: absolute;
        right: 15px;
    }
}


.employee-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.employee-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.employee-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
}

.modal .close {
    float: right;
    font-size: 20px;
    cursor: pointer;
}









/* ========================== style icon close and opne ============================ */
.icon--open{
    font-size: 50px;
}

.icon--close{
    font-size: 50px;
}


/* Modal Styles */
.modal {
  display: none; 
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(28, 32, 21, 0.8); /* Darker, earthier background */
  animation: modal-fade-in 0.3s ease-out;
}
.modal-content {
  background-color: #2C3E2E; /* Earthy green background */
  margin: 15% auto;
  padding: 40px;
  border: none;
  width: 53%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(28, 32, 21, 0.5); /* Matching drop shadow */
  animation: modal-scale-in 0.3s ease-out;
}
.modal-content .icon {
  font-size: 24px; /* Keep the icons at their default size */
  margin-right: 10px; /* Add some spacing between the icon and the text */
}
.close {
  color: #BEBEBE; /* Muted grey close button */
  float: right;
  font-size: 32px;
  font-weight: bold;
  transition: color 0.3s ease;
}
.close:hover,
.close:focus {
  color: #FFFFFF; /* Brighter grey on hover */
  text-decoration: none;
  cursor: pointer;
}
/* Animations */
@keyframes modal-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes modal-scale-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}