/* Interior Attendance System Styles */
.ia-attendance-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ia-form-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.ia-field {
    margin-bottom: 15px;
}

.ia-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1d2327;
}

.ia-input, #ia-site, #ia-date {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.ia-input:focus, #ia-site:focus, #ia-date:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: 2px solid transparent;
}

.ia-button {
    background: #f6f7f7;
    border: 1px solid #2271b1;
    color: #2271b1;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.ia-button:hover {
    background: #f0f0f1;
    border-color: #0a4b78;
    color: #0a4b78;
}

.ia-button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    font-size: 16px;
}

.ia-button-primary:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.ia-workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.ia-worker-card {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 15px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.ia-worker-card:hover {
    border-color: #8c8f94;
    background: #fff;
}

.ia-worker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcde;
}

.ia-worker-select {
    margin: 0;
}

.ia-worker-name {
    font-size: 16px;
    margin: 0;
    cursor: pointer;
}

.ia-worker-phone {
    font-size: 12px;
    color: #646970;
    margin-left: 5px;
}

.ia-worker-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0f0f1;
    margin-left: 8px;
}

.ia-worker-details .ia-field {
    margin-bottom: 10px;
}

.ia-worker-details label {
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 3px;
    color: #646970;
}

.ia-worker-details select,
.ia-worker-details input[type="time"],
.ia-worker-details input[type="text"] {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    font-size: 13px;
}

.ia-login-required,
.ia-access-denied {
    background: #fff;
    border-left: 4px solid #ffb900;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.ia-login-required p,
.ia-access-denied p {
    margin: 0;
    color: #1d2327;
}

#ia-message {
    margin-left: 15px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}

.ia-message-success {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.ia-message-error {
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    color: #721c24;
}

.ia-message-info {
    background: #cff4fc;
    border: 1px solid #9eeaf9;
    color: #055160;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ia-attendance-form {
        padding: 10px;
    }
    
    .ia-workers-grid {
        grid-template-columns: 1fr;
    }
    
    .ia-button {
        width: 100%;
        text-align: center;
    }
}