:root {
    /* Colores del logo SIASS */
    --primary-color: #cc6e0a;    /* Rojo institucional */
    --secondary-color: #fafafa;  /* Negro */
    /*--accent-color: #fcd111;     /* Amarillo dorado */
    --success-color: #28a745;    /* Verde para estados positivos */
    --error-color: #BA0C2F;      /* Rojo para errores */
    --text-color: #333333;       /* Negro suave para texto */
    --background-color: #FFFFFF; /* Fondo blanco */
    --light-gray: #f5f5f5;      /* Gris claro para secciones */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    display: none;  /* Hide by default */
}

body:not(.home-page) .navbar {
    display: block;  /* Show navbar on non-home pages */
    background-color: var(--primary-color);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,...");
}

.form-control.is-invalid {
    border-color: var(--error-color);
    background-image: url("data:image/svg+xml,...");
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

input[type="file"].form-control {
    padding: 0.5rem;
    border: 2px dashed #ddd;
    background: #f8f9fa;
}

input[type="file"].form-control:hover {
    border-color: var(--accent-color);
}

.form-help {
    font-size: 0.875rem;
    color: #666;
    margin-top: 4px;
}

.required::after {
    content: "*";
    color: var(--error-color);
    margin-left: 4px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    margin-left: 0.5rem;
}

.btn-secondary:hover {
    background-color: #2c3e50;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: var(--primary-color);
    color: white;
}

.table tr:hover {
    background-color: #f5f5f5;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--success-color);
    color: white;
}

.alert-error {
    background-color: var(--error-color);
    color: white;
}

.search-box {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.results-list li {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.results-list li:hover {
    background-color: #f5f5f5;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 4.5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 0 0 35px 35px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.welcome-section img {
    max-width: 350px;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
    transition: transform 0.3s ease;
}

.welcome-section img:hover {
    transform: scale(1.05);
}

.welcome-section h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.25);
    font-weight: bold;
}

.welcome-section h2 {
    color: var(--accent-color);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 12px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 199, 44, 0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card {
    height: 70px;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.menu-item h2 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.menu-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
}

/* Adjust spacing for better visual hierarchy */
.row {
    gap: 15px;
    margin-bottom: 2rem;
}

.welcome-section p {
    font-size: 1.4rem;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.7;
}

.logo {
    max-width: 180px;
    margin-bottom: 1rem;
    height: auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.auto-grid {
    --auto-grid-min-size: 14rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
    grid-gap: 1.2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-item {
    background-color: white;
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 199, 44, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.menu-item h2 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.menu-item p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.menu-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 2rem auto;
}

.form {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-section {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

.form-section:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section-title {
    color: var(--primary-color);
    margin: -20px -20px 20px -20px;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e1e1e1;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title i {
    color: var(--accent-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e1e1;
}

.junta-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.junta-details {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.junta-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    color: var(--text-color);
}

.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.badge.presente {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.badge.ausente {
    background-color: var(--error-color);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: #f1c40f;
    color: #2c3e50;
}

td .badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.badge-orden-del-dia {
    background-color: var(--accent-color);
}

.table-responsive {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.report-container {
    max-width: 1200px;
    margin: 0 auto;
}

.report-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.table-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.table-actions .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.table-actions .btn i {
    font-size: 1.1rem;
}

.no-data {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    color: var(--text-color);
}

.back-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background-color: var(--accent-color);
}

.back-button i {
    font-size: 1.5rem;
    margin: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.mt-4 {
    margin-top: 2rem;
}

.documentos-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.documento-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-agenda {
    background-color: var(--accent-color);
}

.badge-acta {
    background-color: var(--success-color);
}

.badge-anexo {
    background-color: var(--secondary-color);
}

.empleado-info {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e1e1e1;
}

.info-card {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-card h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-grid p {
    margin: 0;
}

.info-grid strong {
    color: var(--secondary-color);
}

.logout-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

.user-info {
    color: var(--primary-color);
    font-weight: 500;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-logout {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: var(--error-color);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .report-grid {
        grid-template-columns: 3fr 2fr;
    }
}

@media (max-width: 768px) {
    .junta-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    width: 150px;
    margin: 0 auto 2rem;
    display: block;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn-block {
    width: 100%;
}

/* Estilos para el dashboard */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid var(--accent-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 1rem;  /* Reduced from 2rem */
    text-align: center;
}

.card i {
    font-size: 2.5rem;  /* Reduced from 3rem */
    color: var(--primary-color);
    margin-bottom: 1rem;  /* Reduced from 1.5rem */
}

.card-title {
    color: var(--primary-color);
    font-size: 1.2rem;  /* Reduced from 1.5rem */
    font-weight: bold;
    margin-bottom: 0.5rem;  /* Reduced from 1rem */
}

.card-text {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }
}
/* Estilos para la sección de bienvenida */
.welcome-section {
    text-align: center;
    margin-bottom: 0.5rem;  /* Reduced from 1rem */
    padding: 0.5rem 0;  /* Reduced from 1rem */
}

.welcome-section img {
    max-width: 100px;  /* Reduced from 120px */
    margin-bottom: 0.25rem;  /* Reduced from 0.5rem */
}

.welcome-section h1 {
    color: #333;
    margin-bottom: 0.15rem;  /* Reduced from 0.25rem */
    font-size: 1.5rem;  /* Reduced from 1.75rem */
}

.welcome-section h2 {
    color: #666;
    font-size: 2rem;  /* Reduced from 1.2rem */
}

.dashboard-card {
    height: 75px;  /* Reduced from 90px */
    margin-bottom: 8px;  /* Reduced from 10px */
}

.dashboard-card i {
    font-size: 1.75rem !important;  /* Reduced from 2rem */
    margin-bottom: 3px !important;  /* Reduced from 5px */
}

.dashboard-card .card-title {
    font-size: 0.85rem;  /* Reduced from 0.9rem */
    margin-bottom: 0.15rem;  /* Reduced from 0.25rem */
    line-height: 1.2;  /* Added for better text compactness */
}

.card-body {
    padding: 0.35rem;  /* Reduced from 0.5rem */
}

.container {
    padding: 8px;  /* Reduced from 10px */
}

.dashboard-col {
    padding: 0 6px;  /* Reduced from 8px */
    margin-bottom: 12px;  /* Reduced from 15px */
}

.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: rgb(253, 253, 253);
    text-align: center;
    padding: 0.5rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.95rem;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Adjust main content to prevent footer overlap */
.container {
    margin-bottom: 3rem;
}