/* Employee Check-in Form Styles */
.employee-checkin-form-wrapper {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.employee-checkin-form-wrapper h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.employee-checkin-form-wrapper h4 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

/* Welcome Message Styles */
.welcome-message {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-left: 4px solid #2271b1 !important;
    border-radius: 6px !important;
    font-style: italic !important;
    color: #495057 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    animation: fadeInWelcome 0.5s ease-in;
}

@keyframes fadeInWelcome {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkin-form .form-group {
    margin-bottom: 20px;
}

.checkin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.checkin-form .form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
}

.checkin-form .form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.checkin-form .form-control[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.btn-location, .btn-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-location {
    background: #666;
    color: white;
    margin-left: 10px;
}

.btn-location:hover {
    background: #555;
    transform: translateY(-1px);
}

.btn-location:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    width: 100%;
    background: #007cba;
    color: white;
    font-size: 14px;
    padding: 6px;
    font-weight: bold;
}

.btn-submit:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.message-box {
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    border: 1px solid transparent;
}

.message-box.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message-box.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.message-box.info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Form group small text */
.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

/* Loading states */
.checkin-form .loading {
    position: relative;
    overflow: hidden;
}

.checkin-form .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive design */
@media (max-width: 600px) {
    .employee-checkin-form-wrapper {
        margin: 10px;
        padding: 20px;
    }
    
    .checkin-form .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-location {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

/* Accessibility improvements 
.checkin-form .form-control:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.btn-location:focus,
.btn-submit:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}
