/**
 * XI Tasks Plugin Styles
 */

/* Tasks Dashboard Widget Styles */
.employee-filter-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.employee-filter-container label {
    margin-right: 8px;
    font-weight: 500;
}

#employee-filter {
    max-width: 200px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.dashboard-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dashboard-widget-add-button {
    text-align: center;
    height: 20px;
    line-height: 10px;
    padding: 10px 15px;
}

/* Admin Task Board Styles */
/* Force the layout to ensure nothing overrides it */
#xi-tasks-board-container {
    margin-top: 20px;
    width: 100%;
}

#tasks-board-container {
    overflow-x: auto;
    padding-bottom: 20px;
    margin-top: 20px;
    width: 100%;
}

#tasks-board {
    display: flex !important;
    min-height: 600px;
    flex-wrap: nowrap !important;
}

.board-column {
    min-width: 280px;
    width: 280px;
    margin-right: 20px;
    background: #f1f1f1;
    border-radius: 5px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    overflow: hidden;
    margin-bottom: 20px;
    display: block;
}

.column-header {
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
    background: #e1e1e1;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #ccc;
}

.column-tasks {
    padding: 10px;
    min-height: 200px;
    max-height: 700px;
    overflow-y: auto;
    background: #f7f7f7;
}

.task-card {
    background: white;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    padding: 10px;
    cursor: move;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    border-left: 3px solid #0073aa;
    position: relative;
}

.task-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.task-dragging {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    opacity: 0.9;
}

.task-title {
    font-weight: 500;
    margin-bottom: 5px;
    word-break: break-word;
}

.task-title a {
    text-decoration: none;
    color: #333;
}

.task-title a:hover {
    color: #0073aa;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.board-column-drag-hover {
    background-color: #e7f0f7;
}

.task-status {
    background: #efefef;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11px;
}

.task-deadline {
    font-weight: 500;
    background: #f0f7ff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11px;
}

/* Force styles for WordPress admin */
.wp-admin #tasks-board {
    display: flex !important;
    min-height: 600px;
    flex-direction: row !important;
}

.wp-admin .board-column {
    display: block !important;
    vertical-align: top !important;
    float: none !important;
}

/* Add responsive styles */
@media screen and (max-width: 782px) {
    .board-column {
        min-width: 250px;
        width: 250px;
    }
}

