/* Employee Time Clock Styles */
.employee-timeclock {
    border: 2px solid #e1e5e9;
    padding: 25px;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.timeclock-title {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.current-time {
    background: #f1c40f;
    color: #2c3e50;
    padding: 8px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.timeclock-form {
    margin-bottom: 15px;
}

.employee-timeclock input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.employee-timeclock input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.timeclock-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeclock-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeclock-btn:active:not(:disabled) {
    transform: translateY(0);
}

.timeclock-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.clock-in {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.clock-in:hover:not(:disabled) {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
}

.clock-out {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.clock-out:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-size: 14px;
}

.timeclock-message {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    min-height: 20px;
    transition: all 0.3s ease;
}

.timeclock-message.success {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.timeclock-message.error {
    background: #fdeaea;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.loading-indicator {
    color: #3498db;
    font-weight: 600;
    padding: 10px;
}

.timeclock-info {
    margin-top: 20px;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.timeclock-info p {
    margin: 0;
    color: #5d6d7e;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 480px) {
    .employee-timeclock {
        margin: 10px;
        padding: 20px 15px;
        max-width: none;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .timeclock-btn {
        min-width: auto;
        width: 100%;
    }
    
    .timeclock-title {
        font-size: 20px;
    }
}

/* Animation for button state changes */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.timeclock-btn.loading {
    animation: pulse 1.5s infinite;
}

/* Admin styles */
.timeclock-admin-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeclock-admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}
