/* Daily Work Log - Public Styles */

.dwl-item-container {
    background: #fff;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dwl-item-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.dwl-item-content {
    margin-bottom: 20px;
}

/* Numeric Input */
.dwl-numeric-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.dwl-numeric-input input[type="number"] {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dwl-numeric-input input[type="number"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Rating Stars */
.dwl-rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dwl-star {
    font-size: 32px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.dwl-star:hover,
.dwl-star.active {
    color: #ffa500;
}

/* Rating Scale */
.dwl-rating-scale label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #555;
}

.dwl-scale-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dwl-scale-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dwl-scale-btn:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.dwl-scale-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Text Input */
.dwl-text-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.dwl-text-input textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.dwl-text-input textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Survey Options */
.dwl-survey-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dwl-survey-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.dwl-survey-option:hover {
    background: #f8f9fa;
    border-color: #0073aa;
}

.dwl-survey-option input[type="radio"] {
    margin: 0 12px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.dwl-survey-option span {
    font-size: 15px;
    color: #333;
}

.dwl-survey-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #0073aa;
}

/* Actions */
.dwl-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.dwl-save-feedback {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.dwl-save-feedback:hover {
    background: #005a87;
}

.dwl-save-feedback:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dwl-feedback-message {
    font-size: 14px;
    font-weight: 500;
}

.dwl-feedback-message.success {
    color: #46b450;
}

.dwl-feedback-message.error {
    color: #dc3232;
}

/* Loading State */
.dwl-loading {
    opacity: 0.6;
    pointer-events: none;
}

.dwl-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .dwl-item-container {
        padding: 20px 15px;
    }

    .dwl-item-title {
        font-size: 1.3em;
    }

    .dwl-scale-buttons {
        justify-content: center;
    }

    .dwl-scale-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .dwl-item-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dwl-save-feedback {
        width: 100%;
        text-align: center;
    }
}
