
.glass-card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}


.logo-mini-scene {
    position: relative;
    width: 24px;
    height: 36px;
    display: flex;
    justify-content: center;
    transform: rotate(20deg) scale(0.65);
    transform-origin: center;
}

.mini-punch-card {
    width: 26px;
    height: 40px;
    background-color: #f8fafc;
    border-radius: 2px 2px 5px 5px;
    position: relative;
    box-shadow: -2px 3px 6px rgba(0,0,0,0.5);
    padding: 3px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    gap: 2px;
    z-index: 10;
    margin-top: 5px;
}

.mini-holes-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1px;
    padding: 0 1px;
}

.mini-hole {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #1e293b;
    position: relative;
}

.mini-hole.active {
    background-color: #6366f1;
    box-shadow: 0 0 4px #6366f1;
}

.mini-glow-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #6366f1;
    animation: miniPulse 1.5s infinite;
}

@keyframes miniPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.mini-cylinder-press {
    position: absolute;
    top: -30px; 
    left: calc(50% + 5px); 
    width: 6px;
    height: 40px;
    background: linear-gradient(to right, #475569, #cbd5e1, #94a3b8, #475569);
    border-radius: 0 0 1px 1px;
    z-index: 50;
    box-shadow: 1px 0 3px rgba(0,0,0,0.5);
    animation: miniCylinderAction 3s infinite ease-in-out;
    animation-delay: 0.5s;
}

.mini-cylinder-press::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #1e293b;
}

@keyframes miniCylinderAction {
    0%, 20%, 100% { transform: translateY(0); }
    40% { transform: translateY(28px); } 
    42% { transform: translateY(27px); } 
    50% { transform: translateY(28px); } 
    70% { transform: translateY(0); }
}

.mini-card-content {
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.mini-line {
    height: 1.5px;
    background-color: #cbd5e1;
    border-radius: 1px;
}
.mini-line.w-full { width: 100%; }
.mini-line.w-2-3 { width: 70%; }
.mini-line.w-1-2 { width: 50%; }

.kpi-card {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.8) 0%, rgba(42, 42, 60, 0.6) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(156, 163, 175);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: white;
    background: rgba(59, 130, 246, 0.15);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(209, 213, 219);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.status-badge {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.status-ok { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-atraso_entrada { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.status-atraso_saida { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.status-atraso_compensado { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.status-hora_extra { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-saida_antecipada { background: rgba(249, 115, 22, 0.15); color: #fb923c; }
.status-falta { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.status-sem_entrada { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.status-sem_saida { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.status-folga { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }
.status-nao_processado { background: rgba(107, 114, 128, 0.15); color: #6b7280; }


.heatmap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-height: 200px;
    overflow-y: auto;
}

.heatmap-cell {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    transition: transform 0.15s ease;
    cursor: default;
}

.heatmap-cell:hover {
    transform: scale(1.5);
    z-index: 10;
}

.heatmap-cell[data-level="0"] { background: rgba(75, 85, 99, 0.4); }
.heatmap-cell[data-level="1"] { background: #22c55e; }
.heatmap-cell[data-level="2"] { background: #a855f7; }
.heatmap-cell[data-level="3"] { background: #eab308; }
.heatmap-cell[data-level="4"] { background: #ef4444; }

.cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.cal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    min-width: 180px;
    text-align: center;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.cal-nav-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-weekdays {
    margin-bottom: 4px;
}

.cal-weekday-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(156, 163, 175, 0.8);
    text-transform: uppercase;
    padding: 0.25rem 0;
}

.cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    min-height: 52px;
    padding: 4px 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid transparent;
    position: relative;
}

.cal-cell:not(.cal-empty):hover {
    transform: scale(1.05);
    z-index: 5;
    border-color: rgba(255, 255, 255, 0.3);
}

.cal-empty {
    cursor: default;
}

.cal-cell[data-level="-1"] { background: rgba(55, 65, 81, 0.2); }
.cal-cell[data-level="0"]  { background: rgba(75, 85, 99, 0.35); }
.cal-cell[data-level="1"]  { background: rgba(34, 197, 94, 0.2); }
.cal-cell[data-level="2"]  { background: rgba(168, 85, 247, 0.2); }
.cal-cell[data-level="3"]  { background: rgba(234, 179, 8, 0.2); }
.cal-cell[data-level="4"]  { background: rgba(239, 68, 68, 0.2); }

.cal-cell.cal-selected {
    border-color: rgba(59, 130, 246, 0.7) !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.cal-day-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.cal-day-hours {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(96, 165, 250, 0.9);
    margin-top: 1px;
}

.cal-summary {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-summary-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cal-summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(156, 163, 175, 0.8);
}

.cal-clear-btn {
    display: block;
    margin: 0.75rem auto 0;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(156, 163, 175, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cal-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}


.sort-icon {
    font-size: 0.65rem;
    margin-left: 2px;
}


::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-card, .kpi-card {
    animation: fadeIn 0.4s ease both;
}

.kpi-card:nth-child(2) { animation-delay: 0.05s; }
.kpi-card:nth-child(3) { animation-delay: 0.1s; }
.kpi-card:nth-child(4) { animation-delay: 0.15s; }
