/* @override 
	http://localhost:8888/factory/wp-content/plugins/factory-workers-plugin/assets/css/style.css?* */

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

h1, h2 {
    color: #333;
}

form {
    margin-bottom: 20px;
}

input[type="text"], input[type="date"], input[type="file"], textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"], button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
}

input[type="submit"]:hover, button:hover {
    background-color: #45a049;
}

.error {
    color: red;
    font-size: 0.9em;
}

.success {
    color: green;
    font-size: 0.9em;
}

/* Uncertainty checkbox styling */
.fwp-field-with-uncertain {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fwp-uncertain-label {
    margin-left: 10px;
    font-size: 0.9em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.fwp-uncertain-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.fwp-field-with-uncertain textarea {
    flex: 1;
    min-height: 100px;
    resize: vertical;
}

.date-pair {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #fafafa;
}

/* Frontend Edit Form Styles */
.fwp-edit-container { 
    width: 100%; 
    margin: 0 auto; 
}

.fwp-section { 
    margin-bottom: 30px; 

}

.fwp-two-columns { 
    display: flex; 
    gap: 30px; 
}

.fwp-left-column { 
    width: 50%; 
}

.fwp-right-column { 
    width: 50%; 
}

.fwp-form-field { 
    margin-bottom: 15px; 
}

.fwp-form-field label { 
    display: block; 
    font-weight: bold; 
    margin-bottom: 5px; 
}

.fwp-form-field input, .fwp-form-field textarea { 
    width: 100%; 
    max-width: 400px; 
    padding: 8px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
}

.fwp-date-section { 
    margin: 20px 0; 
    padding: 15px; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    background: #f9f9f9; 
}

.fwp-date-section h4 { 
    margin: 0 0 15px 0; 
    color: #333; 
}

.fwp-date-pair, .fwp-reg-date-pair { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 10px; 
    align-items: end; 
}

.fwp-date-pair label { 
    font-weight: normal; 
}

.fwp-date-pair input { 
    width: auto; 
}

.fwp-add-date-btn { 
    margin: 15px 0 5px 0; 
}

.fwp-image-container { 
    position: relative; 
    width: 100%; 
    height: 800px; 
    overflow: hidden; 
    cursor: grab; 
}

.fwp-image-container.dragging { 
    cursor: grabbing; 
}

.fwp-zoomable-image { 
    position: absolute; 
    transition: transform 0.2s ease; 
    transform-origin: center; 
    max-width: none; 
    max-height: none; 
}

.fwp-image-controls { 
    margin-top: 10px; 
    text-align: center; 
}

.fwp-zoom-btn { 
    background: #007cba; 
    color: white; 
    border: none; 
    padding: 5px 10px; 
    margin: 0 2px; 
    border-radius: 3px; 
    cursor: pointer; 
}

.fwp-zoom-btn:hover { 
    background: #005a87; 
}

.fwp-buttons-section {
    text-align: center;
}

.fwp-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

@media (max-width: 768px) { 
    .fwp-two-columns { 
        flex-direction: column; 
    }
    .fwp-left-column, .fwp-right-column { 
        width: 100%; 
    }
    .fwp-date-pair, .fwp-reg-date-pair  { 
        flex-direction: column; 
        gap: 10px; 
    }
}.worker-entry {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.remove-entry {
    color: red;
    cursor: pointer;
    font-weight: bold;
}

/* Image upload styles */
.image-uploads {
    margin: 20px 0;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.image-upload-group {
    margin-bottom: 15px;
}

.image-upload-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.image-upload-group small {
    display: block;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Worker display styles */
.workers-display {
    margin-top: 30px;
}

.worker-info {
    margin-bottom: 15px;
}

.worker-info h3 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

.dates {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.worker-images {
    margin-top: 15px;
}

.image-gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card-image {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.card-image h5 {
    margin: 0 0 10px 0;
    padding: 8px;
    background-color: #2c5aa0;
    color: white;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.worker-card-image {
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.worker-card-image:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
    }
    
    .card-image {
        min-width: 100%;
    }
}

/* Uncertainty checkbox styling */
.fwp-field-with-uncertain {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fwp-field-with-uncertain input[type="text"],
.fwp-field-with-uncertain input[type="date"],
.fwp-field-with-uncertain textarea {
    flex: 1;
    margin: 0;
}

.fwp-uncertain-label {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.fwp-uncertain-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Uncertainty indicator dots in list view */
.fwp-status-indicators {
    display: flex;
    gap: 4px;
    align-items: center;
}

.fwp-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    margin-right: 2px;
}

.fwp-completed-dot {
    background-color: #28a745; /* Green for completed */
}

.fwp-incomplete-dot {
    background-color: #ffc107; /* Yellow for incomplete */
}

.fwp-uncertain-dot-white {
    background-color: white;
    border: 2px solid #333;
}

.fwp-uncertain-dot-black {
    background-color: #333;
}

/* Button descriptions for frontend form */
.fwp-button-description {
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.fwp-button-description:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fwp-button-description p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fwp-button-description span {
    flex-shrink: 0;
}

/* Button layout improvements */
.fwp-buttons-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fwp-buttons-section .button {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fwp-button-description {
        padding: 10px;
        font-size: 13px;
    }
    
    .fwp-button-description p {
        gap: 6px;
    }
    
    .fwp-buttons-section {
        gap: 10px;
    }
    
    .fwp-buttons-section .button {
        margin-right: 5px !important;
        margin-bottom: 5px;
    }
}