/* Frontend Styles for Daily Work Report Plugin */

.zs-dwr-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.zs-dwr-form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zs-dwr-form-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.zs-dwr-form {
    margin-bottom: 30px;
}

.zs-dwr-form-row {
    margin-bottom: 20px;
}

.zs-dwr-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.zs-dwr-form-row .required {
    color: #dc3545;
    margin-right: 5px;
}

.zs-dwr-form-row input[type="text"],
.zs-dwr-form-row input[type="number"],
.zs-dwr-form-row select,
.zs-dwr-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.zs-dwr-date-fields {
    display: flex;
    gap: 10px;
    align-items: center;
}

.zs-dwr-date-select {
    flex: 1;
    min-width: 100px;
}

.zs-dwr-form-row input:focus,
.zs-dwr-form-row select:focus,
.zs-dwr-form-row textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.zs-dwr-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.zs-dwr-form-actions .button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.zs-dwr-form-actions .button-primary {
    background: #2271b1;
    color: white;
    border: none;
}

.zs-dwr-form-actions .button-primary:hover {
    background: #135e96;
}

.zs-dwr-reports-list {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.zs-dwr-reports-list h3 {
    margin-bottom: 20px;
    color: #333;
}

.zs-dwr-reports-table-container {
    overflow-x: auto;
}

.zs-dwr-reports-table-container table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.zs-dwr-reports-table-container th,
.zs-dwr-reports-table-container td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.zs-dwr-reports-table-container th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.zs-dwr-reports-table-container tr:hover {
    background: #f9f9f9;
}

.zs-dwr-reports-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zs-dwr-reports-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.zs-dwr-reports-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.zs-dwr-filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.zs-dwr-filter-row label {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
    font-weight: 600;
    color: #333;
}

.zs-dwr-filter-row input,
.zs-dwr-filter-row select {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.zs-dwr-reports-table {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.zs-dwr-reports-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.zs-dwr-reports-table th,
.zs-dwr-reports-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.zs-dwr-reports-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.zs-dwr-reports-table tr:hover {
    background: #f9f9f9;
}

.zs-dwr-status-draft {
    color: #856404;
    background: #fff3cd;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.zs-dwr-status-submitted {
    color: #155724;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .zs-dwr-form-container,
    .zs-dwr-reports-container {
        margin: 10px;
        padding: 15px;
    }
    
    .zs-dwr-filter-row {
        flex-direction: column;
    }
    
    .zs-dwr-filter-row label {
        width: 100%;
    }
    
    .zs-dwr-form-actions {
        flex-direction: column;
    }
    
    .zs-dwr-form-actions .button {
        width: 100%;
    }
    
    .zs-dwr-reports-table-container,
    .zs-dwr-reports-table {
        overflow-x: scroll;
    }
}

