.mobile-attendance-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem 0.75rem 0.5rem;
    width: 100%;
    max-width: 380px;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.attendance-header-card {
    width: 100%;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-yellow);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.attendance-emp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-yellow);
    object-fit: cover;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.attendance-emp-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-yellow);
    background-color: #121417;
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.attendance-emp-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    overflow: hidden;
}

.attendance-emp-name-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.attendance-emp-name {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-main);
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attendance-badge-code {
    display: inline-flex;
    align-items: center;
    background-color: rgba(250, 204, 21, 0.15);
    color: var(--color-yellow);
    border: 1px solid rgba(250, 204, 21, 0.35);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 400;
}

.attendance-emp-pos {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.attendance-time-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0.25rem 0;
    width: 100%;
}

.attendance-current-date {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}

.attendance-realtime-clock {
    font-size: 2.35rem;
    font-weight: 300;
    color: var(--color-yellow);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    line-height: 1;
}

.attendance-center-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0.5rem 0;
    position: relative;
}

.btn-big-punch {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #ffffff;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, filter 0.2s ease;
    user-select: none;
    position: relative;
}

.btn-big-punch:active {
    transform: scale(0.94);
    filter: brightness(0.92);
}

.btn-big-punch.green {
    background: linear-gradient(145deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 14px 38px rgba(34, 197, 94, 0.38), 0 0 0 12px rgba(34, 197, 94, 0.12);
    animation: pulseGreenGlow 2.8s infinite ease-in-out;
}

.btn-big-punch.red {
    background: linear-gradient(145deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 14px 38px rgba(239, 68, 68, 0.38), 0 0 0 12px rgba(239, 68, 68, 0.12);
    animation: pulseRedGlow 2.8s infinite ease-in-out;
}

.btn-big-punch.cooldown-active {
    filter: brightness(0.8) grayscale(0.25);
    cursor: not-allowed;
    animation: none !important;
    transform: none !important;
}

@keyframes pulseGreenGlow {
    0%, 100% {
        box-shadow: 0 14px 38px rgba(34, 197, 94, 0.38), 0 0 0 10px rgba(34, 197, 94, 0.1);
    }
    50% {
        box-shadow: 0 18px 48px rgba(34, 197, 94, 0.55), 0 0 0 16px rgba(34, 197, 94, 0.18);
    }
}

@keyframes pulseRedGlow {
    0%, 100% {
        box-shadow: 0 14px 38px rgba(239, 68, 68, 0.38), 0 0 0 10px rgba(239, 68, 68, 0.1);
    }
    50% {
        box-shadow: 0 18px 48px rgba(239, 68, 68, 0.55), 0 0 0 16px rgba(239, 68, 68, 0.18);
    }
}

.punch-icon {
    font-size: 2.75rem;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.punch-title {
    font-size: 1.15rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.punch-subtitle {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

.attendance-summary-card {
    width: 100%;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-yellow);
    border-radius: var(--radius-md);
    padding: 0.65rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.summary-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.summary-label {
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.summary-val {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-yellow);
}
