/* Client Task Submission Form Styles */
.taskflow-client-submit {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

.submit-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.submit-header h2 {
    color: #2271b1;
    margin-bottom: 10px;
    font-size: 28px;
}

.submit-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Task Entry Styles */
.task-entry {
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.task-entry:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.task-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.task-entry-header h3 {
    color: #2271b1;
    margin: 0;
    font-size: 20px;
}

.remove-task-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.remove-task-btn:hover {
    background-color: #c82333;
}

/* Form Field Styles */
.form-row {
    margin-bottom: 20px;
}

.form-row-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row.half {
    flex: 1;
    margin-bottom: 0;
}

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

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin: 30px 0;
}

.add-task-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.add-task-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.add-task-btn .dashicons {
    font-size: 18px;
}

/* Submit Section */
.form-submit {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.submit-info {
    margin-bottom: 20px;
}

.submit-info p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.submit-btn {
    background-color: #2271b1;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.task-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
}

/* Submission Result */
.submission-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.result-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.success-message {
    color: #28a745;
}

.success-message .dashicons {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.success-message h3 {
    margin: 15px 0;
    color: #333;
}

.success-message p {
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .taskflow-client-submit {
        padding: 15px;
    }
    
    .form-row-group {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row.half {
        margin-bottom: 20px;
    }
    
    .task-entry {
        padding: 20px;
    }
    
    .task-entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .remove-task-btn {
        align-self: flex-end;
    }
}

/* Load Dashicons for frontend */
.taskflow-client-submit .dashicons {
    font-family: dashicons;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    speak: never;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 20px;
    height: 20px;
    font-size: 20px;
    vertical-align: top;
    text-align: center;
    transition: color .1s ease-in;
}

.taskflow-client-submit .dashicons-plus-alt:before {
    content: "\f502";
}

.taskflow-client-submit .dashicons-yes-alt:before {
    content: "\f147";
}