:root {
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --primary-color: #667eea;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--gradient-end), var(--gradient-start));
}

.btn-lg {
    min-height: 60px;
    font-size: 1.25rem;
}

.btn-clock-in {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    min-height: 80px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.3s;
}

.btn-clock-in:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-clock-out {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    border: none;
    color: white;
    min-height: 80px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 15px;
    transition: all 0.3s;
}

.btn-clock-out:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
}

.btn-break {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
    color: #212529;
    min-height: 60px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
}

.btn-break:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.employee-card {
    cursor: pointer;
    padding: 25px;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.employee-card:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.employee-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.employee-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.pin-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.pin-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background: white;
    transition: all 0.2s;
}

.pin-dot.filled {
    background: var(--primary-color);
    transform: scale(1.1);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 350px;
    margin: 0 auto;
}

.keypad-btn {
    min-height: 70px;
    font-size: 1.8rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 12px;
    transition: all 0.2s;
}

.keypad-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-color: var(--primary-color);
}

.keypad-btn:active {
    transform: scale(0.95);
}

.keypad-btn.action {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    font-size: 1.2rem;
}

.timer-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    margin: 20px 0;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-working {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(32, 201, 151, 0.2));
    color: #28a745;
}

.status-break {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(253, 126, 20, 0.2));
    color: #fd7e14;
}

.home-option {
    padding: 40px;
    text-align: center;
    cursor: pointer;
    min-height: 200px;
}

.home-option i {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-option h4 {
    font-weight: 600;
    color: #333;
}

.home-option p {
    color: #666;
    margin-bottom: 0;
}

.tenant-card {
    cursor: pointer;
    padding: 30px;
    text-align: center;
}

.tenant-card:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.tenant-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.table th {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-weight: 600;
    border: none;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.active-shift-card {
    border-left: 4px solid var(--success-color);
}

.active-shift-card.on-break {
    border-left-color: var(--warning-color);
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

@media (max-width: 768px) {
    .keypad-btn {
        min-height: 60px;
        font-size: 1.5rem;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .employee-card {
        min-height: 120px;
        padding: 20px;
    }
    
    .employee-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}
