/**
 * ClockID Frontend Styles
 * Styles for the attendance dashboard in store pages
 */

/* Compact store page tabs to fit all in one row */
.wp-block-create-block-tabs .tab-labels .tab-label {
    padding: 0.6em 0.8em 0.4em !important;
}

/* Dashboard Container */
.clockid-dashboard {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: inherit;
}

.clockid-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #9ee5bf;
}

.clockid-dashboard-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}

.clockid-date {
    color: #666;
    font-size: 0.9rem;
}

/* Tabs */
.clockid-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.clockid-tab {
    background: transparent;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.clockid-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.clockid-tab.active {
    background: #9ee5bf;
    color: #2d5a3d;
}

/* Tab Content */
.clockid-tab-content {
    display: none;
}

.clockid-tab-content.active {
    display: block;
}

/* Stats */
.clockid-today-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.clockid-stat {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.clockid-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.clockid-stat-label {
    font-size: 0.85rem;
    color: #666;
}

.clockid-stat-arrived .clockid-stat-number {
    color: #5cb88a;
}

.clockid-stat-not-marked .clockid-stat-number {
    color: #f59e0b;
}

.clockid-stat-absent .clockid-stat-number {
    color: #ef4444;
}

/* Attendance List */
.clockid-attendance-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clockid-child-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
    gap: 1rem;
}

.clockid-child-row:hover {
    background: #f0f0f0;
}

.clockid-child-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.clockid-child-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.clockid-child-name {
    font-weight: 600;
    color: #333;
}

.clockid-child-class {
    font-size: 0.8rem;
    color: #888;
}

.clockid-child-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.clockid-child-status.status-arrived,
.clockid-child-status.status-late {
    background: #d1fae5;
    color: #059669;
}

.clockid-child-status.status-sick,
.clockid-child-status.status-vacation,
.clockid-child-status.status-not_coming {
    background: #fee2e2;
    color: #dc2626;
}

.clockid-child-status.status-unmarked {
    background: #fef3c7;
    color: #d97706;
}

.clockid-check-in-time {
    font-size: 0.8rem;
    color: #666;
}

/* Tables */
.clockid-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.clockid-table th,
.clockid-table td {
    padding: 0.8rem;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.clockid-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.clockid-table tr:hover td {
    background: #f8f9fa;
}

/* Buttons */
.clockid-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #9ee5bf;
    color: #2d5a3d;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.clockid-button:hover {
    background: #7dd9a8;
    color: #2d5a3d;
}

.clockid-button-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Section Headers */
.clockid-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Status Badge */
.clockid-status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.clockid-status-badge.status-active {
    background: #d1fae5;
    color: #059669;
}

.clockid-status-badge.status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* Empty State */
.clockid-empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Footer */
.clockid-dashboard-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.clockid-admin-link {
    color: #5cb88a;
    text-decoration: none;
    font-size: 0.9rem;
}

.clockid-admin-link:hover {
    text-decoration: underline;
}

/* Quick Stats (Mini Version) */
.clockid-quick-stats {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.clockid-quick-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.clockid-quick-stat strong {
    font-size: 1.2rem;
    color: #5cb88a;
}

.clockid-quick-stat span {
    font-size: 0.8rem;
    color: #666;
}

/* Reports Section */
.clockid-reports-section {
    text-align: center;
    padding: 2rem;
}

/* Parent Info */
.clockid-parent {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Modal Overlay */
.clockid-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.clockid-modal-overlay.active {
    display: flex !important;
}

.clockid-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: clockid-modal-in 0.3s ease;
}

.clockid-modal-large {
    max-width: 700px;
}

@keyframes clockid-modal-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.clockid-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
}

.clockid-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.clockid-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.clockid-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Progress Steps */
.clockid-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.clockid-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.9rem;
}

.clockid-step.active {
    color: #5cb88a;
}

.clockid-step.completed {
    color: #5cb88a;
}

.clockid-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.clockid-step.active .clockid-step-number {
    background: #9ee5bf;
    color: #2d5a3d;
}

.clockid-step.completed .clockid-step-number {
    background: #9ee5bf;
    color: #2d5a3d;
}

.clockid-step-label {
    font-weight: 500;
}

/* Modal Body */
.clockid-modal-body {
    padding: 1.5rem;
}

.clockid-step-content {
    display: none;
}

.clockid-step-content.active {
    display: block;
}

/* Section Titles */
.clockid-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #5cb88a;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8f5f2;
}

.clockid-section-title:first-child {
    margin-top: 0;
}

/* Form Styles */
.clockid-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.clockid-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 0.4rem;
}

.clockid-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.clockid-input:focus {
    outline: none;
    border-color: #9ee5bf;
    box-shadow: 0 0 0 3px rgba(158, 229, 191, 0.3);
}

.clockid-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.clockid-modal.shake {
    animation: shake 0.5s ease;
}

.clockid-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Checkbox */
.clockid-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.clockid-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #9ee5bf;
}

.clockid-sms-option {
    background: #f0fdf9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #d1fae5;
}

/* Modal Footer */
.clockid-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.clockid-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.clockid-button-primary {
    background: #9ee5bf;
    color: #2d5a3d;
}

.clockid-button-primary:hover {
    background: #7dd9a8;
    color: #2d5a3d;
}

.clockid-button-secondary {
    background: #e5e7eb;
    color: #374151;
}

.clockid-button-secondary:hover {
    background: #d1d5db;
}

/* Success Message */
.clockid-success-message {
    text-align: center;
    padding: 2rem;
}

.clockid-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #bcecd1;
    color: #2d5a3d;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.clockid-success-message h4 {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.clockid-success-message p {
    color: #666;
    margin: 0 0 1.5rem;
}

.clockid-success-message .clockid-button {
    margin: 0 0.5rem;
}

/* Loading State */
.clockid-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.clockid-button.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: clockid-spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes clockid-spin {
    to { transform: rotate(360deg); }
}

/* Radio Groups */
.clockid-radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.clockid-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #555;
}

.clockid-radio-label:hover {
    background: #e8f5f2;
}

.clockid-radio-label input[type="radio"] {
    display: none;
}

.clockid-radio-label input[type="radio"]:checked + span {
    color: #5cb88a;
    font-weight: 600;
}

.clockid-radio-label:has(input[type="radio"]:checked) {
    background: #e8f5f2;
    border-color: #9ee5bf;
}

/* Gender Select Styling */
.clockid-gender-select .clockid-gender-boy:has(input:checked) {
    background: #E3F2FD;
    border-color: #64B5F6;
}

.clockid-gender-select .clockid-gender-boy:has(input:checked) span {
    color: #1976D2;
}

.clockid-gender-select .clockid-gender-girl:has(input:checked) {
    background: #FCE4EC;
    border-color: #F48FB1;
}

.clockid-gender-select .clockid-gender-girl:has(input:checked) span {
    color: #C2185B;
}

/* Avatar Section */
.clockid-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.clockid-avatar-upload {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.clockid-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    transition: border-color 0.3s;
    position: relative;
}

.clockid-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar upload overlay */
.clockid-avatar-upload .clockid-avatar {
    cursor: pointer;
}

.clockid-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}

.clockid-avatar-overlay svg {
    color: #fff;
}

.clockid-avatar-upload .clockid-avatar:hover .clockid-avatar-overlay {
    opacity: 1;
}

.clockid-avatar-hint {
    font-size: 0.75rem;
    color: #888;
}

.clockid-avatar-parent {
    border-color: #9ee5bf;
}

.clockid-avatar-child {
    border-color: #a8b7ff;
}

.clockid-avatar-child.female {
    border-color: #f5adff;
}

.clockid-avatar-employee {
    border-color: #ffc107;
}

.clockid-employee-avatar-section {
    margin-bottom: 1rem;
}

/* Child avatar in edit mode - show overlay on hover */
.clockid-child-avatar-section .clockid-avatar {
    cursor: default;
}

.clockid-child-avatar-section.edit-mode .clockid-avatar {
    cursor: pointer;
}

.clockid-child-avatar-section.edit-mode .clockid-avatar:hover .clockid-avatar-overlay {
    opacity: 1;
}

/* Camera Capture Modal */
.clockid-camera-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clockid-camera-modal {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.clockid-camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #2a2a2a;
    color: #fff;
}

.clockid-camera-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.clockid-camera-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.clockid-camera-container {
    position: relative;
    background: #000;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

#clockid-camera-video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.clockid-camera-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: #2a2a2a;
}

.clockid-camera-switch {
    background: #444;
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.clockid-camera-switch:hover {
    background: #555;
}

.clockid-camera-capture-btn {
    background: #fff;
    border: 4px solid #666;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.clockid-camera-capture-btn:hover {
    transform: scale(1.05);
}

.clockid-camera-capture-btn:active {
    transform: scale(0.95);
}

.clockid-camera-capture-btn svg {
    color: #e74c3c;
}

.clockid-camera-cancel {
    background: #666;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.clockid-camera-cancel:hover {
    background: #777;
}

/* Document View Modal */
.clockid-view-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.clockid-view-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 300px;
}

.clockid-view-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.clockid-view-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.clockid-view-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #666;
}

.clockid-view-modal-close:hover {
    color: #333;
}

.clockid-view-modal-content {
    flex: 1;
    overflow: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.clockid-view-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.clockid-view-modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

/* Add Parent Toggle */
.clockid-add-parent-toggle {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.clockid-button-outline {
    background: transparent;
    border: 2px dashed #9ee5bf;
    color: #5cb88a;
}

.clockid-button-outline:hover {
    background: #e8f5f2;
    border-style: solid;
}

.clockid-toggle-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Parent 2 Section */
.clockid-parent2-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    animation: clockid-slide-down 0.3s ease;
}

@keyframes clockid-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clockid-parent2-section .clockid-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.clockid-remove-parent2 {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.clockid-remove-parent2:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Help Text */
.clockid-help-text {
    font-size: 0.85rem;
    color: #888;
    margin: -0.5rem 0 1rem;
}

/* Contact Cards */
.clockid-contact-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    animation: clockid-slide-down 0.3s ease;
}

.clockid-contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.clockid-contact-title {
    font-weight: 600;
    color: #5cb88a;
    font-size: 0.95rem;
}

.clockid-remove-contact {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.clockid-remove-contact:hover {
    background: #fee2e2;
    color: #dc2626;
}

.clockid-contact-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0e0e0;
}

.clockid-contact-permissions .clockid-checkbox-label {
    flex: 0 0 auto;
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

.clockid-contact-permissions .clockid-checkbox-label:has(input:checked) {
    background: #e8f5f2;
    border-color: #9ee5bf;
}

.clockid-add-contact-toggle {
    text-align: center;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .clockid-dashboard {
        padding: 1rem;
    }

    .clockid-dashboard-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .clockid-tabs {
        justify-content: center;
    }

    .clockid-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .clockid-today-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .clockid-stat-number {
        font-size: 1.5rem;
    }

    .clockid-child-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .clockid-table {
        font-size: 0.85rem;
    }

    .clockid-table th,
    .clockid-table td {
        padding: 0.5rem;
    }

    /* Modal responsive */
    .clockid-steps {
        gap: 0.75rem;
        padding: 1rem;
    }

    .clockid-step-label {
        display: none;
    }

    .clockid-form-row {
        grid-template-columns: 1fr;
    }

    .clockid-radio-group {
        flex-direction: column;
    }

    .clockid-modal-footer {
        flex-wrap: wrap;
    }

    .clockid-modal-footer .clockid-button {
        flex: 1 1 45%;
    }
}

/* ========================================
   Document Upload Modal
   ======================================== */

.clockid-document-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.clockid-document-modal-overlay.active {
    display: flex !important;
}

.clockid-document-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: clockidSlideIn 0.3s ease;
    margin: auto;
}

.clockid-document-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #9ee5bf;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.clockid-document-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.clockid-document-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.clockid-document-modal-close:hover {
    color: #e74c3c;
}

.clockid-document-modal-body {
    padding: 1.5rem;
}

/* Document Upload Form */
.clockid-document-upload-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.clockid-document-upload-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #5cb88a;
}

.clockid-file-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.clockid-file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.clockid-file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.clockid-file-input-label:hover {
    border-color: #9ee5bf;
    background: #f0fff9;
}

.clockid-file-input-label svg {
    color: #5cb88a;
    margin-bottom: 0.5rem;
}

.clockid-file-input-label span {
    color: #666;
    font-size: 0.9rem;
}

.clockid-file-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.clockid-btn-upload,
.clockid-camera-capture {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.clockid-btn-upload {
    background: #9ee5bf;
    color: #2d5a3d;
    border: none;
}

.clockid-btn-upload:hover {
    background: #7dd9a8;
}

.clockid-camera-capture {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.clockid-camera-capture:hover {
    background: #f0f0f0;
}

#clockid-document-preview {
    margin-top: 1rem;
    text-align: center;
}

#clockid-document-preview img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.clockid-pdf-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.clockid-pdf-preview svg {
    color: #e74c3c;
}

/* Documents List */
.clockid-documents-section {
    margin-top: 1.5rem;
}

.clockid-documents-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
}

.clockid-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.clockid-document-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.clockid-document-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clockid-document-card.expired {
    border-color: #e74c3c;
    background: #fff5f5;
}

.clockid-doc-icon {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.clockid-doc-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.clockid-doc-icon svg {
    color: #666;
}

.clockid-doc-info {
    flex: 1;
    margin-bottom: 0.8rem;
}

.clockid-doc-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    word-break: break-word;
}

.clockid-doc-type {
    color: #666;
    font-size: 0.8rem;
}

.clockid-doc-expiry {
    color: #666;
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.clockid-doc-expired {
    color: #e74c3c;
    font-weight: 600;
}

.clockid-doc-actions {
    display: flex;
    gap: 0.5rem;
}

.clockid-btn-mini {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    flex: 1;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}

.clockid-btn-mini:first-child {
    background: #9ee5bf;
    color: #2d5a3d;
}

.clockid-btn-mini:first-child:hover {
    background: #7dd9a8;
}

.clockid-btn-danger {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.clockid-btn-danger:hover {
    background: #e74c3c;
    color: #fff;
}

/* No documents message */
.clockid-no-documents,
.clockid-loading,
.clockid-error {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.clockid-error {
    color: #e74c3c;
}

/* Document button on child/employee cards */
.clockid-documents-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clockid-documents-btn:hover {
    background: #9ee5bf;
    color: #2d5a3d;
    border-color: #9ee5bf;
}

.clockid-documents-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive document modal */
@media (max-width: 600px) {
    .clockid-document-modal-overlay {
        padding: 1rem;
    }

    .clockid-documents-grid {
        grid-template-columns: 1fr;
    }

    .clockid-file-buttons {
        flex-direction: column;
    }

    .clockid-btn-upload,
    .clockid-camera-capture {
        justify-content: center;
    }
}

/* ========================================
   Action Buttons (Icon Buttons)
   ======================================== */

.clockid-actions-cell {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.clockid-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clockid-btn-icon:hover {
    background: #f0f4f8;
    border-color: #2196f3;
    color: #2196f3;
}

.clockid-btn-icon svg {
    width: 18px;
    height: 18px;
}

.clockid-btn-icon.clockid-view-child:hover,
.clockid-btn-icon.clockid-view-employee:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

.clockid-btn-icon.clockid-open-document-modal:hover {
    background: #fff3e0;
    border-color: #ff9800;
    color: #ff9800;
}

/* ========================================
   Radio Group Styling
   ======================================== */

.clockid-radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.clockid-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.clockid-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.clockid-radio-group input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   Form Section Styles
   ======================================== */

.clockid-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.clockid-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.clockid-form-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.clockid-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.clockid-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.clockid-form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

.clockid-form-group label .required {
    color: #e53935;
}

.clockid-form-group .clockid-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.clockid-form-group .clockid-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.clockid-form-group .clockid-input[readonly],
.clockid-form-group .clockid-input:disabled {
    background-color: #f9f9f9;
    color: #666;
    cursor: default;
}

.clockid-form-group textarea.clockid-input {
    resize: vertical;
    min-height: 60px;
}

/* Collapsible sections */
.clockid-collapsible .clockid-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clockid-collapsible .clockid-section-toggle .toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.clockid-collapsible .clockid-section-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* ========================================
   Modal Improvements
   ======================================== */

.clockid-modal-large {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
}

.clockid-modal-body {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding: 1.5rem;
}

.clockid-modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 600px) {
    .clockid-actions-cell {
        flex-wrap: wrap;
    }

    .clockid-form-row {
        grid-template-columns: 1fr;
    }

    .clockid-radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .clockid-modal-footer {
        flex-wrap: wrap;
    }

    .clockid-modal-footer .clockid-button {
        flex: 1;
        min-width: 100px;
    }
}

/* ========================================
   Attendance Cards Grid - Visual Interface
   ======================================== */

.clockid-attendance-header {
    margin-bottom: 1rem;
}

.clockid-attendance-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

/* Stats Bar */
.clockid-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f0e6 0%, #ebe5d8 100%);
    border-radius: 12px;
}

.clockid-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    min-width: 70px;
}

.clockid-stat-pill .stat-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3a3a5c;
}

.clockid-stat-pill .stat-label {
    font-size: 0.75rem;
    color: rgba(58,58,92,0.85);
}

.clockid-stat-pill.stat-arrived { background: rgba(158, 229, 191, 0.6); }
.clockid-stat-pill.stat-late { background: rgba(255, 193, 153, 0.6); }
.clockid-stat-pill.stat-unmarked { background: rgba(200, 200, 200, 0.5); }
.clockid-stat-pill.stat-sick { background: rgba(245, 173, 255, 0.6); }
.clockid-stat-pill.stat-vacation { background: rgba(168, 183, 255, 0.6); }
.clockid-stat-pill.stat-left { background: rgba(128, 222, 234, 0.6); }

/* Status Legend */
.clockid-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #666;
}

.legend-item::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-arrived::before { background: #9ee5bf; }
.legend-late::before { background: #ffc199; }
.legend-not_coming::before { background: #ffa3a3; }
.legend-unmarked::before { background: #c8c8c8; }
.legend-vacation::before { background: #a8b7ff; }
.legend-sick::before { background: #f5adff; }
.legend-left::before { background: #80deea; }

/* Class Filter */
.clockid-class-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.clockid-filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clockid-filter-btn:hover {
    border-color: #2196f3;
    color: #2196f3;
}

.clockid-filter-btn.active {
    background: #2196f3;
    border-color: #2196f3;
    color: #fff;
}

/* Children Cards Grid */
.clockid-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Individual Child Card */
.clockid-child-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.clockid-child-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Card Status Colors - Pastel */
.clockid-child-card.status-arrived {
    background: linear-gradient(180deg, #e8faf0 0%, #bcecd1 100%);
    border-color: #9ee5bf;
}

.clockid-child-card.status-late {
    background: linear-gradient(180deg, #fff5eb 0%, #ffd0ad 100%);
    border-color: #ffc199;
}

.clockid-child-card.status-not_coming {
    background: linear-gradient(180deg, #fff0f0 0%, #ffcfcf 100%);
    border-color: #ffa3a3;
}

.clockid-child-card.status-unmarked {
    background: linear-gradient(180deg, #fafafa 0%, #eeeeee 100%);
    border-color: #c8c8c8;
}

.clockid-child-card.status-vacation {
    background: linear-gradient(180deg, #f0f2ff 0%, #d0d8ff 100%);
    border-color: #a8b7ff;
}

.clockid-child-card.status-sick {
    background: linear-gradient(180deg, #fdf0ff 0%, #f5d8ff 100%);
    border-color: #f5adff;
}

.clockid-child-card.status-left {
    background: linear-gradient(180deg, #e0f7fa 0%, #b2ebf2 100%);
    border-color: #80deea;
}

/* Card Photo/Avatar */
.clockid-card-photo {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 0.5rem;
}

.clockid-card-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.clockid-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #b8c2ff 0%, #f8b8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a3a5c;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.clockid-alert-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #f44336;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(244, 67, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

/* Vacation Badge */
.clockid-vacation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ff9800;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

/* Card Name */
.clockid-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Class */
.clockid-card-class {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}

/* Card Time */
.clockid-card-time {
    font-size: 0.8rem;
    font-weight: 500;
    color: #5cb88a;
    margin-bottom: 0.5rem;
}

/* Quick Status Buttons */
.clockid-card-actions {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.clockid-status-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(0,0,0,0.05);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.clockid-status-btn:hover {
    transform: scale(1.1);
}

.clockid-status-btn.btn-arrived:hover,
.clockid-status-btn.btn-arrived.active {
    background: #9ee5bf;
    color: #2d5a3d;
}

.clockid-status-btn.btn-late:hover,
.clockid-status-btn.btn-late.active {
    background: #ffc199;
    color: #5a3d2d;
}

.clockid-status-btn.btn-not_coming:hover,
.clockid-status-btn.btn-not_coming.active {
    background: #ffa3a3;
    color: #5a2d2d;
}

.clockid-status-btn.btn-sick:hover,
.clockid-status-btn.btn-sick.active {
    background: #f5adff;
    color: #4a2d5a;
}

.clockid-status-btn.btn-vacation:hover,
.clockid-status-btn.btn-vacation.active {
    background: #a8b7ff;
    color: #2d3a5a;
}

.clockid-status-btn.btn-left:hover,
.clockid-status-btn.btn-left.active {
    background: #80deea;
    color: #00695c;
}

/* Status Label */
.clockid-status-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.clockid-status-label.status-arrived {
    background: #9ee5bf;
    color: #2d5a3d;
}

.clockid-status-label.status-late {
    background: #ffc199;
    color: #5a3d2d;
}

.clockid-status-label.status-not_coming {
    background: #ffa3a3;
    color: #5a2d2d;
}

.clockid-status-label.status-sick {
    background: #f5adff;
    color: #4a2d5a;
}

.clockid-status-label.status-vacation {
    background: #a8b7ff;
    color: #2d3a5a;
}

.clockid-status-label.status-unmarked {
    background: #e0e0e0;
    color: #666;
}

/* Employee Table Styles */
.clockid-employees-table .clockid-employee-avatar-cell {
    width: 50px;
    padding: 8px;
}

.clockid-employee-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.clockid-employee-row.status-arrived .clockid-employee-avatar-img {
    border-color: #9ee5bf;
}

.clockid-employee-row.status-late .clockid-employee-avatar-img {
    border-color: #ffc199;
}

.clockid-employee-row.status-sick .clockid-employee-avatar-img {
    border-color: #f5adff;
}

.clockid-employee-row.status-vacation .clockid-employee-avatar-img {
    border-color: #a8b7ff;
}

.clockid-employee-row.status-left .clockid-employee-avatar-img {
    border-color: #80deea;
}

/* Employee row background colors by status */
.clockid-employee-row.status-arrived {
    background: rgba(158, 229, 191, 0.15);
}

.clockid-employee-row.status-late {
    background: rgba(255, 193, 153, 0.15);
}

.clockid-employee-row.status-sick {
    background: rgba(245, 173, 255, 0.15);
}

.clockid-employee-row.status-vacation {
    background: rgba(168, 183, 255, 0.15);
}

.clockid-employee-row.status-left {
    background: rgba(128, 222, 234, 0.15);
}

.clockid-employee-row.status-unmarked {
    background: rgba(200, 200, 200, 0.1);
}

/* Employee row hover - darker shade of the status color */
.clockid-employee-row.status-arrived:hover td {
    background: rgba(158, 229, 191, 0.35) !important;
}

.clockid-employee-row.status-late:hover td {
    background: rgba(255, 193, 153, 0.35) !important;
}

.clockid-employee-row.status-sick:hover td {
    background: rgba(245, 173, 255, 0.35) !important;
}

.clockid-employee-row.status-vacation:hover td {
    background: rgba(168, 183, 255, 0.35) !important;
}

.clockid-employee-row.status-left:hover td {
    background: rgba(128, 222, 234, 0.35) !important;
}

.clockid-employee-row.status-unmarked:hover td {
    background: rgba(200, 200, 200, 0.25) !important;
}

/* Employee class column */
.clockid-employee-class-cell {
    color: #666;
    font-size: 0.9rem;
}

/* Employee status label text */
.clockid-emp-status-label {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.clockid-emp-status-label.status-arrived {
    background: rgba(158, 229, 191, 0.5);
    color: #1a5c32;
}

.clockid-emp-status-label.status-late {
    background: rgba(255, 193, 153, 0.5);
    color: #8b4513;
}

.clockid-emp-status-label.status-sick {
    background: rgba(245, 173, 255, 0.5);
    color: #6b2d7b;
}

.clockid-emp-status-label.status-vacation {
    background: rgba(168, 183, 255, 0.5);
    color: #2d3a8c;
}

.clockid-emp-status-label.status-left {
    background: rgba(128, 222, 234, 0.5);
    color: #006064;
}

.clockid-emp-status-label.status-unmarked {
    background: rgba(200, 200, 200, 0.4);
    color: #666;
}

.clockid-employee-status-cell {
    min-width: 200px;
}

.clockid-status-buttons {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
}

/* Employee Status Buttons - same styling as child status buttons */
.clockid-emp-status-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.clockid-emp-status-btn:hover {
    transform: scale(1.1);
}

.clockid-emp-status-btn.btn-arrived:hover,
.clockid-emp-status-btn.btn-arrived.active {
    background: #9ee5bf;
    color: #2d5a3d;
}

.clockid-emp-status-btn.btn-late:hover,
.clockid-emp-status-btn.btn-late.active {
    background: #ffc199;
    color: #5a3d2d;
}

.clockid-emp-status-btn.btn-not_coming:hover,
.clockid-emp-status-btn.btn-not_coming.active {
    background: #ffa3a3;
    color: #5a2d2d;
}

.clockid-emp-status-btn.btn-sick:hover,
.clockid-emp-status-btn.btn-sick.active {
    background: #f5adff;
    color: #4a2d5a;
}

.clockid-emp-status-btn.btn-vacation:hover,
.clockid-emp-status-btn.btn-vacation.active {
    background: #a8b7ff;
    color: #2d3a5a;
}

.clockid-emp-status-btn.btn-left:hover,
.clockid-emp-status-btn.btn-left.active {
    background: #80deea;
    color: #00695c;
}

.clockid-status-label.status-left {
    background: #80deea;
    color: #00695c;
}

/* Pickup Modal */
.clockid-pickup-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.clockid-pickup-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: right;
}

.clockid-pickup-option:hover {
    background: #e8f5e9;
    border-color: #81c784;
}

.clockid-pickup-option.selected {
    background: #c8e6c9;
    border-color: #4caf50;
}

.clockid-pickup-option .pickup-name {
    font-weight: 600;
    color: #333;
}

.clockid-pickup-option .pickup-relation {
    font-size: 0.85rem;
    color: #666;
}

.clockid-pickup-other,
.clockid-pickup-time {
    margin-bottom: 1rem;
}

.clockid-pickup-other label,
.clockid-pickup-time label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

/* Bulk Actions */
.clockid-bulk-actions {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: #fff8e1;
    border-radius: 8px;
    margin-top: 1rem;
}

.clockid-button-warning {
    background: linear-gradient(135deg, #ffc199 0%, #ffd0ad 100%);
    color: #5a3d2d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clockid-button-warning:hover {
    background: linear-gradient(135deg, #ffd0ad 0%, #ffddbd 100%);
}

/* Hide cards when filtered */
.clockid-child-card.hidden {
    display: none;
}

/* ========================================
   Responsive Cards Grid
   ======================================== */

@media (max-width: 600px) {
    .clockid-children-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
    }

    .clockid-child-card {
        padding: 0.75rem;
    }

    .clockid-card-photo {
        width: 55px;
        height: 55px;
    }

    .clockid-avatar {
        font-size: 1.2rem;
    }

    .clockid-card-name {
        font-size: 0.8rem;
    }

    .clockid-stats-bar {
        padding: 0.75rem;
    }

    .clockid-stat-pill {
        padding: 0.35rem 0.6rem;
        min-width: 55px;
    }

    .clockid-stat-pill .stat-count {
        font-size: 1.2rem;
    }

    .clockid-stat-pill .stat-label {
        font-size: 0.65rem;
    }

    .clockid-status-btn {
        width: 24px;
        height: 24px;
    }

    .clockid-status-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   Medical Clearance Modal
   ======================================== */

.clockid-modal-small {
    max-width: 450px;
}

.clockid-clearance-warning {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.clockid-clearance-warning svg {
    margin-bottom: 1rem;
}

.clockid-clearance-warning p {
    margin: 0;
    font-size: 1rem;
    color: #5d4037;
    line-height: 1.6;
}

.clockid-clearance-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clockid-clearance-options .clockid-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
}

.clockid-clearance-options .clockid-button svg {
    flex-shrink: 0;
}

.clockid-button-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border: none;
}

.clockid-button-warning:hover {
    background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%);
    transform: translateY(-1px);
}

/* Status pending clearance - show special indicator */
.clockid-child-card.status-pending_clearance {
    background: linear-gradient(180deg, #fff5eb 0%, #ffd0ad 100%);
    border-color: #ffc199;
}

.clockid-child-card.status-pending_clearance .clockid-avatar {
    background: linear-gradient(135deg, #ffc199 0%, #ffd0ad 100%);
}

/* Alert badge animation */
.clockid-alert-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #ff5722;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.4);
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 87, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}

/* Needs clearance indicator on card */
.clockid-child-card[data-needs-clearance="true"] {
    position: relative;
}

.clockid-child-card[data-needs-clearance="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9800, #f57c00, #ff9800);
    border-radius: 10px 10px 0 0;
}

/* Needs clearance card styling */
.clockid-child-card.needs-clearance {
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.clockid-child-card.needs-clearance .clockid-card-photo {
    position: relative;
}

/* Small info tag below avatar for clearance */
.clockid-child-card.needs-clearance::after {
    content: 'נדרש אישור';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ========================================
   Context Menu
   ======================================== */

.clockid-context-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 180px;
    overflow: hidden;
}

.clockid-context-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    color: #333;
    font-size: 0.9rem;
    text-align: right;
    cursor: pointer;
    transition: background 0.2s;
}

.clockid-context-item:hover {
    background: #f5f5f5;
}

.clockid-context-item svg {
    flex-shrink: 0;
}

/* ========================================
   Send Home Modal
   ======================================== */

.clockid-info-box {
    background: #e3f2fd;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-right: 4px solid #2196f3;
    font-size: 0.9rem;
    line-height: 1.6;
}

.clockid-guidelines-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1976d2;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.clockid-guidelines-link:hover {
    background: #e3f2fd;
    text-decoration: none;
}

.clockid-button-danger {
    background: linear-gradient(135deg, #ffa3a3 0%, #ffb8b8 100%);
    color: #5a2d2d;
    border: none;
}

.clockid-button-danger:hover {
    background: linear-gradient(135deg, #ff8a8a 0%, #ffa3a3 100%);
    transform: translateY(-1px);
}

.clockid-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.clockid-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Temperature input styling */
.clockid-temp-group input {
    max-width: 120px;
}

/* ========================================
   Alerts Section
   ======================================== */

.clockid-alerts-section {
    padding: 0.5rem;
}

.clockid-alert-group {
    margin-bottom: 1.5rem;
}

.clockid-alert-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.clockid-alert-icon {
    font-size: 1.2rem;
}

.clockid-alert-count {
    background: #b8c2ff;
    color: #2d3a5a;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: auto;
}

.clockid-alert-count.clockid-alert-warning {
    background: #ffc199;
    color: #5a3d2d;
}

.clockid-alert-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clockid-alert-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.clockid-alert-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.clockid-alert-pending {
    border-right: 3px solid #2196f3;
    background: #e3f2fd;
}

.clockid-alert-medical {
    border-right: 3px solid #ff9800;
    background: #fff8e1;
}

.clockid-alert-sent-home {
    border-right: 3px solid #9c27b0;
    background: #f3e5f5;
}

.clockid-alert-avatar {
    flex-shrink: 0;
}

.clockid-alert-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.clockid-alert-avatar .clockid-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
}

.clockid-alert-info {
    flex: 1;
    min-width: 0;
}

.clockid-alert-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.clockid-alert-info small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

.clockid-alert-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

.clockid-button-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.clockid-button-success {
    background: linear-gradient(135deg, #9ee5bf 0%, #7dd9a8 100%);
    color: #2d5a3d;
    border: none;
}

.clockid-button-success:hover {
    background: linear-gradient(135deg, #7dd9a8 0%, #5cc890 100%);
}

/* Messages List */
.clockid-messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clockid-message-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
}

.clockid-message-item:hover {
    background: #f5f5f5;
}

.clockid-message-item.clockid-unread {
    background: #e3f2fd;
    border-color: #90caf9;
}

.clockid-message-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
}

.clockid-message-content {
    flex: 1;
    min-width: 0;
}

.clockid-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.clockid-message-header strong {
    font-size: 0.9rem;
}

.clockid-message-time {
    font-size: 0.75rem;
    color: #999;
}

.clockid-message-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.clockid-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.clockid-empty-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.clockid-empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Badge for tabs */
.clockid-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #f44336;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 9px;
    padding: 0 5px;
    margin-right: 4px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive alerts */
@media (max-width: 480px) {
    .clockid-alert-card {
        flex-wrap: wrap;
    }

    .clockid-alert-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e0e0e0;
    }
}

/* ==========================================
   Employee Clock (Time Tracking) Styles
   ========================================== */

.clockid-employee-clock {
    background: linear-gradient(135deg, #b8c2ff 0%, #f8b8ff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #3a3a5c;
    text-align: center;
    box-shadow: 0 10px 40px rgba(184, 194, 255, 0.3);
}

.clockid-clock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.clockid-clock-greeting {
    font-size: 1.1rem;
    font-weight: 500;
}

.clockid-clock-time {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.clockid-clock-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.clockid-clock-status.clocked-in {
    background: rgba(158, 229, 191, 0.4);
}

.clockid-clock-status.clocked-out {
    background: rgba(255, 255, 255, 0.1);
}

.clockid-status-icon {
    font-size: 1.5rem;
}

.clockid-clock-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 1rem;
    opacity: 0.9;
}

.clockid-summary-value {
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

.clockid-clock-buttons {
    margin-top: 1.5rem;
}

.clockid-clock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.clockid-clock-btn.clockid-clock-in {
    background: #9ee5bf;
    color: #2d5a3d;
    box-shadow: 0 4px 15px rgba(158, 229, 191, 0.5);
}

.clockid-clock-btn.clockid-clock-in:hover {
    background: #7dd9a8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 229, 191, 0.6);
}

.clockid-clock-btn.clockid-clock-out {
    background: #ffa3a3;
    color: #5a2d2d;
    box-shadow: 0 4px 15px rgba(255, 163, 163, 0.5);
}

.clockid-clock-btn.clockid-clock-out:hover {
    background: #ff8a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 163, 163, 0.6);
}

.clockid-clock-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.clockid-btn-icon {
    font-size: 1.4rem;
}

.clockid-gps-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.clockid-gps-notice svg {
    flex-shrink: 0;
}

.clockid-gps-status {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
}

.clockid-gps-status.gps-error {
    background: rgba(255, 163, 163, 0.4);
}

.clockid-gps-status.gps-success {
    background: rgba(158, 229, 191, 0.4);
}

.clockid-gps-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clockid-gps-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Clock Result Message */
.clockid-clock-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.clockid-clock-result.success {
    background: rgba(158, 229, 191, 0.4);
}

.clockid-clock-result.error {
    background: rgba(255, 163, 163, 0.4);
}

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

/* Responsive Clock */
@media (max-width: 480px) {
    .clockid-employee-clock {
        padding: 1rem;
    }

    .clockid-clock-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .clockid-clock-time {
        font-size: 1.2rem;
    }

    .clockid-clock-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* Emergency Contacts Section */
.clockid-emergency-contact-row {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.clockid-emergency-contact-row .clockid-form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.clockid-emergency-contact-row .clockid-form-group {
    flex: 1;
    min-width: 100px;
    margin-bottom: 0;
}

.clockid-emergency-contact-row .clockid-input {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
}

.clockid-emergency-contact-row .ec-relationship {
    min-width: 110px;
}

.clockid-delete-emergency-contact,
.clockid-save-new-contact {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.clockid-delete-emergency-contact {
    color: #e74c3c;
}

.clockid-delete-emergency-contact:hover {
    background: #fee;
}

.clockid-save-new-contact {
    color: #27ae60;
}

.clockid-save-new-contact:hover {
    background: #e8f5e9;
}

.clockid-add-emergency-contact {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.clockid-add-emergency-contact:hover {
    background: #e8f5e9;
    border-color: #9ee5bf;
    color: #2d5a3d;
}

.clockid-new-contact {
    background: #e8f5e9;
    border: 1px dashed #9ee5bf;
}

#clockid-emergency-contacts-list .clockid-no-data {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
}

#clockid-emergency-contacts-list .clockid-loading {
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem;
}

#clockid-emergency-contacts-list .clockid-error {
    color: #e74c3c;
    font-size: 0.9rem;
}

/* Table Sorting Styles */
.clockid-sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.clockid-sortable-table th.sortable:hover {
    background: #f0f7ff;
}

.clockid-sortable-table th .sort-icon {
    margin-right: 5px;
    color: #999;
    font-size: 0.85em;
}

.clockid-sortable-table th.sort-asc .sort-icon,
.clockid-sortable-table th.sort-desc .sort-icon {
    color: #2196F3;
}

/* Order buttons for class cards */
.clockid-order-buttons {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.clockid-class-card:hover .clockid-order-buttons {
    opacity: 1;
}

.clockid-btn-order:hover {
    background: #2196F3 !important;
    color: white !important;
}

/* Row order buttons */
.clockid-row-order-buttons {
    opacity: 0.5;
    transition: opacity 0.2s;
}

tr:hover .clockid-row-order-buttons {
    opacity: 1;
}

.clockid-btn-row-up:hover,
.clockid-btn-row-down:hover {
    background: #2196F3 !important;
    color: white !important;
}

/* Class filter buttons sorting */
.clockid-class-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.clockid-filter-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.clockid-filter-btn:hover {
    background: #e3f2fd;
    border-color: #90caf9;
}

.clockid-filter-btn.active {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

/* Employee Attendance Section in Today Tab */
.clockid-employee-attendance-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

/* Employee Cards Grid */
.clockid-employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Individual Employee Card */
.clockid-employee-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.clockid-employee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Employee Card Status Colors - Same as Child Cards */
.clockid-employee-card.status-arrived {
    background: linear-gradient(180deg, #e8faf0 0%, #bcecd1 100%);
    border-color: #9ee5bf;
}

.clockid-employee-card.status-late {
    background: linear-gradient(180deg, #fff5eb 0%, #ffd0ad 100%);
    border-color: #ffc199;
}

.clockid-employee-card.status-unmarked {
    background: linear-gradient(180deg, #fafafa 0%, #eeeeee 100%);
    border-color: #c8c8c8;
}

.clockid-employee-card.status-vacation {
    background: linear-gradient(180deg, #f0f2ff 0%, #d0d8ff 100%);
    border-color: #a8b7ff;
}

.clockid-employee-card.status-sick {
    background: linear-gradient(180deg, #fdf0ff 0%, #f5d8ff 100%);
    border-color: #f5adff;
}

.clockid-employee-card.status-left {
    background: linear-gradient(180deg, #e0f7fa 0%, #b2ebf2 100%);
    border-color: #80deea;
}

.clockid-employee-card .clockid-card-photo {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 0.5rem;
}

.clockid-employee-card .clockid-card-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.clockid-employee-card .clockid-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.clockid-employee-card .clockid-card-role {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}

.clockid-employee-card .clockid-card-class {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2px;
}

.clockid-employee-card .clockid-card-time {
    font-size: 0.85rem;
    color: #2196f3;
    font-weight: 500;
}

/* Employee Card Actions */
.clockid-emp-card-actions {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hide filtered employee cards */
.clockid-employee-card.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .clockid-employees-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
    }

    .clockid-employee-card {
        padding: 0.75rem;
    }

    .clockid-employee-card .clockid-card-photo {
        width: 55px;
        height: 55px;
    }
}
