#debug-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    font-family: monospace;
    font-size: 12px;
    padding: 10px;
    z-index: 9999;
    display: none;
    border-top: 2px solid #00ff00;
}

#debug-panel.visible {
    display: block;
}

.debug-entry {
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 3px;
}

.debug-entry.error {
    color: #ff5555;
}

.debug-entry.warning {
    color: #ffff55;
}

.debug-entry.info {
    color: #55ff55;
}

.debug-toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #005eb8;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    z-index: 10000;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Estilos para selector de modalidad de trabajo */
.work-mode-selector {
    margin-top: 15px;
    text-align: center;
}

.work-mode-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--datafast-secondary);
}

.work-mode-dropdown {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid #d0d0d0;
    background-color: white;
    font-family: var(--datafast-font);
    font-size: 14px;
    width: 200px;
    color: var(--datafast-dark);
    transition: border-color var(--transition-speed) ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    padding-right: 30px;
    cursor: pointer;
}

.work-mode-dropdown:focus {
    outline: none;
    border-color: var(--datafast-primary);
    box-shadow: 0 0 0 2px rgba(0, 94, 184, 0.2);
}

/* Estilos generales actualizados */
body {
    font-family: var(--datafast-font);
    margin: 0;
    padding: 0;
    background-color: #f9f9fa;
    background-image: radial-gradient(circle at 15% 15%, rgba(0, 94, 184, 0.03) 0%, transparent 20%), radial-gradient(circle at 85% 85%, rgba(255, 107, 0, 0.03) 0%, transparent 20%);
    background-attachment: fixed;
    color: var(--datafast-dark);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: relative;
}

    body.loaded {
        opacity: 1;
    }

/* Initial Loader - Aparece antes de determinar qué pantalla mostrar */
#initial-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

    #initial-loader.hidden {
        opacity: 0;
        visibility: hidden;
    }

.datafast-logo-loader {
    width: 140px;
    height: auto;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite ease-in-out alternate;
}

.spinner-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin-top: 15px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--datafast-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

    .spinner:before,
    .spinner:after {
        content: '';
        position: absolute;
        border: 3px solid transparent;
        border-radius: 50%;
    }

    .spinner:before {
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        border-top-color: var(--datafast-success);
        animation: spin 1.5s linear infinite reverse;
    }

    .spinner:after {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        border-top-color: var(--datafast-primary-dark);
    animation: spin 1s linear infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Componentes mejorados */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background-color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius-lg);
    min-height: 75vh;
    transform: translateY(0);
    transition: transform 0.4s var(--transition-bounce), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

    .app-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }

/* Login container con estilo empresarial */
#login-container {
    background: linear-gradient(135deg, rgba(0, 94, 184, 0.05), rgba(0, 120, 212, 0.1));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

    #login-container.show {
        opacity: 1;
        transform: translateY(0);
    }

    /* Patrones decorativos para el fondo */
    #login-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 20% 30%, rgba(0, 94, 184, 0.05) 0%, transparent 20%), radial-gradient(circle at 80% 70%, rgba(0, 120, 212, 0.07) 0%, transparent 20%);
        z-index: -1;
        opacity: 0.7;
    }

.login-box {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    transform: translateY(0);
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

    .login-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

.login-header {
    background: var(--datafast-gradient);
    padding: 30px;
    text-align: center;
    color: white;
}

    .login-header img {
        height: 60px;
        margin-bottom: 15px;
        filter: brightness(0) invert(1);
    }

    .login-header h1 {
        margin: 0;
        font-size: 1.6rem;
        font-weight: 400;
        letter-spacing: 0.5px;
    }

.login-body {
    padding: 40px 30px;
    text-align: center;
}

.login-title {
    font-size: 1.6rem;
    color: var(--datafast-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background-color: #f9f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.login-feature {
    display: flex;
    align-items: center;
}

    .login-feature i {
        color: var(--datafast-primary);
        font-size: 1.2rem;
        width: 30px;
        margin-right: 10px;
    }

    .login-feature span {
        color: #444;
        font-size: 1rem;
    }

.login-button {
    background-color: var(--datafast-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 94, 184, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .login-button i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

    .login-button:hover {
        background-color: var(--datafast-primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 94, 184, 0.25);
    }
/* Mejoras para el header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 15px;
}

.header-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--datafast-primary);
    margin: 0;
}

/* Estilos para la guía del usuario */
.user-guide {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(0, 94, 184, 0.15);
    display: none;
}

.guide-header {
    background-color: #f5f7fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}    .guide-header h3 {
        color: var(--datafast-primary);
        margin: 0;
        font-size: var(--font-size-md);
        font-weight: 600;
    }

.guide-toggle-btn {
    background-color: transparent;
    border: none;
    color: #777;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

    .guide-toggle-btn:hover {
        background-color: rgba(0, 0, 0, 0.05);
        color: #444;
    }

.guide-content {
    padding: 20px;
}

.guide-step {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

    .guide-step:last-child {
        margin-bottom: 0;
    }

.guide-step-icon {
    background-color: rgba(0, 94, 184, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}    .guide-step-icon i {
        color: var(--datafast-primary);
        font-size: var(--font-size-lg);
    }

.guide-step-text {
    flex: 1;
}

    .guide-step-text h4 {
        color: var(--datafast-primary-dark);
        margin: 0 0 5px 0;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .guide-step-text p {
        color: #555;
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.5;
    }

.guide-footer {
    background-color: rgba(255, 149, 0, 0.05);
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 149, 0, 0.2);
}

    .guide-footer p {
        color: #666;
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.5;
    }

.floating-guide-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--datafast-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 999;
}

    .floating-guide-button i {
        font-size: 1.5rem;
    }

    .floating-guide-button:hover {
        background-color: var(--datafast-primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

/* Mejoras para el perfil de usuario */
#user-profile {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--datafast-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);    border-left: 4px solid var(--datafast-primary);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--datafast-dark);
    margin: 0 0 4px 0;
}

.user-email {
    color: #666;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.user-organization {
    color: var(--datafast-primary);
    font-size: var(--font-size-sm);
    margin: 0;
    display: flex;
    align-items: center;
}

.user-organization-icon {
    margin-right: 6px;
}
/* Mejoras para el display de fecha y hora */
.time-display-container {
    text-align: center;
    background: linear-gradient(to right, rgba(0, 94, 184, 0.03), rgba(0, 120, 212, 0.06));
    border-radius: 10px;
    padding: 25px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 94, 184, 0.1);
    position: relative;
}

.time-label {
    font-size: 1rem;
    color: var(--datafast-primary);
    margin-bottom: 5px;
    font-weight: 500;
}

.date-display {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.time-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--datafast-primary);
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.time-info {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}        /* Mejoras para los botones de acción */
.action-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    margin-bottom: 30px;
}    .action-button {
    background-color: var(--datafast-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 120px;
}.action-button i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

.action-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.action-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
}

.action-description {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 400;
}

.check-in {
    background-color: var(--datafast-success);
}

    .check-in:hover {
        background-color: #099a38;
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(12, 170, 65, 0.25);
    }

.check-out {
    background-color: var(--datafast-error);
}

    .check-out:hover {
        background-color: #d32f2f;
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(230, 57, 70, 0.25);
    }

.sync-button {
    background-color: var(--datafast-accent);
    position: relative;
}

    .sync-button:hover {
        background-color: #e05d00;
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(255, 107, 0, 0.25);
    }

.counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    color: var(--datafast-accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Tooltips para los botones */
[data-tooltip] {
    position: relative;
}

    [data-tooltip]:before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 10px;
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 7px 12px;
        border-radius: 4px;
        font-size: 0.85rem;
        font-weight: 400;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, visibility 0.2s;
        z-index: 10;
    }

    [data-tooltip]:after {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid rgba(0, 0, 0, 0.8);
        margin-bottom: 4px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, visibility 0.2s;
        z-index: 10;
    }

    [data-tooltip]:hover:before,
    [data-tooltip]:hover:after {
        opacity: 1;
        visibility: visible;
    }        /* Mejoras para el contenedor de registros */
.record-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e7e7e7;
}

.record-title {
    background-color: #f9f9f9;
    padding: 15px 20px;
    border-bottom: 1px solid #e7e7e7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--datafast-primary);
}.header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .refresh-button, .export-button {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .date-filters {
        display: flex;
        align-items: center;
        gap: 5px;
    }

.date-filter-container {
    display: flex;
    align-items: center;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-input-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--datafast-text);
}

.date-input {    padding: 5px 10px;    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    outline: none;
    transition: var(--transition-normal);
}

.date-input:focus {
    border-color: var(--datafast-primary);
    box-shadow: 0 0 0 2px rgba(0, 94, 184, 0.2);
}

.export-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: var(--datafast-success);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background-color: var(--datafast-primary);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: 8px;
}

.refresh-button:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}  .refresh-button i.fa-spin {
    animation: spin 1s linear infinite;
}

.export-button:hover {
    background-color: #099a38;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}