/* --- BASE --- */
#zp-kanban-container { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background-color: var(--zp-bg-board);
    padding: 20px;
    border-radius: var(--zp-radius);
    box-sizing: border-box;
}

/* --- TOOLBAR --- */
.zp-board-toolbar { display: flex; margin-bottom: 20px; align-items: center; }
.zp-spacer { flex-grow: 1; }
.zp-btn-large {
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- BOARD LAYOUT --- */
.zp-board { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; align-items: flex-start; }

/* --- COLUMNS --- */
.zp-column { 
    background: var(--zp-bg-column); 
    border-radius: var(--zp-radius); 
    width: 300px; 
    min-width: 300px; 
    padding: 16px; 
    flex: 0 0 300px; 
    display: flex; 
    flex-direction: column; 
    max-height: 100%; 
    position: relative; 
    box-shadow: var(--zp-shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

.zp-column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; cursor: grab; }
.zp-header-title-group { display: flex; align-items: center; gap: 8px; flex-grow: 1; }
.zp-column-title { color: #172b4d; font-size: 15px; font-weight: 700; margin: 0; }

.zp-column-count {
    background-color: var(--zp-primary-light);
    color: var(--zp-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.zp-delete-column { cursor: pointer; color: #6b778c; opacity: 0; visibility: hidden; transition: all 0.2s; font-size: 16px; }
.zp-column:hover .zp-delete-column { opacity: 1; visibility: visible; }
.zp-delete-column:hover { color: #bf2600; }

.zp-task-list { min-height: 50px; flex-grow: 1; margin-bottom: 10px; }

/* --- CARDS --- */
.zp-task-card { 
    background: #fff; 
    padding: 12px; 
    margin-bottom: 10px; 
    border-radius: 8px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
    border: 1px solid #f0f0f0;
    cursor: pointer; 
    position: relative; 
    color: #172b4d; 
    font-size: 14px; 
    transition: transform 0.1s, box-shadow 0.1s;
}
.zp-task-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.08); }

.zp-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }

.zp-badge { font-size: 10px; border-radius: 4px; padding: 2px 6px; font-weight: 600; display: inline-flex; align-items: center; letter-spacing: 0.02em; }
.zp-badge-prio { background: #f4f5f7; color: #42526e; }
.zp-badge-date { background: #fff0b3; color: #172b4d; }
.zp-badge-member { background: var(--zp-primary-light); color: var(--zp-primary); }
.zp-badge-file { background: #e6fcff; color: #008da6; text-transform: uppercase; }

/* --- ADD BUTTONS --- */
.zp-add-task-btn { 
    background: transparent; 
    color: #5e6c84; 
    border: none; 
    text-align: left; 
    padding: 8px; 
    width: 100%; 
    border-radius: 4px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-size: 13px; 
    transition: background 0.2s;
}
.zp-add-task-btn:hover { background-color: rgba(9,30,66,.08); color: #172b4d; }
.zp-quick-add-input { width: 100%; padding: 8px; border: 2px solid var(--zp-primary); border-radius: 4px; box-sizing: border-box; margin-bottom: 5px; display: block; }

.zp-add-column-wrapper { min-width: 300px; padding-top: 0; }
.zp-add-column-btn { width: 100%; background: rgba(0,0,0,0.04); border: 1px dashed #ccc; border-radius: 8px; padding: 12px; color: #172b4d; cursor: pointer; text-align: left; font-weight: 500; font-size: 14px; transition: all 0.2s; }
.zp-add-column-btn:hover { background: rgba(0,0,0,0.08); border-color: #a5adba; }

/* --- MODAL --- */
.zp-modal { position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.zp-modal-overlay { position: absolute; width: 100%; height: 100%; background: rgba(23, 43, 77, 0.6); backdrop-filter: blur(2px); }
.zp-modal-content { background: #f4f5f7; width: 600px; max-width: 95%; max-height: 90vh; border-radius: 12px; position: relative; z-index: 2; overflow-y: auto; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.zp-close-modal { position: absolute; right: 15px; top: 15px; background: none; border: none; cursor: pointer; font-size: 24px; color: #42526e; padding: 5px; z-index: 10; line-height: 1; }
.zp-close-modal:hover { color: #172b4d; }

.zp-modal-header { background: #fff; padding: 24px 32px 10px 32px; border-radius: 12px 12px 0 0; }
.zp-modal-body { padding: 24px 32px; background: #fff; flex-grow: 1; }
.zp-modal-footer { padding: 20px 32px; background: #f9fafc; display: flex; justify-content: space-between; border-top: 1px solid #ebecf0; border-radius: 0 0 12px 12px; }

.zp-label-small { display: block; font-size: 11px; font-weight: 700; color: #5e6c84; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.zp-input-title { width: 100%; border: none; font-size: 22px; font-weight: 600; color: #172b4d; padding: 8px 0; background: transparent; outline: none; border-bottom: 2px solid transparent; transition: border 0.2s; }
.zp-input-title:focus { border-bottom-color: var(--zp-primary); }
.zp-input, .zp-select { width: 100%; padding: 10px 12px; border: 2px solid #dfe1e6; border-radius: 6px; background: #fafbfc; box-sizing: border-box; font-size: 14px; color: #172b4d; transition: all 0.2s; }
.zp-input:focus, .zp-select:focus { background: #fff; border-color: var(--zp-primary); outline: none; }

.zp-btn-primary { background: var(--zp-primary); color: #fff; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: filter 0.1s; }
.zp-btn-primary:hover { filter: brightness(110%); }
.zp-btn-danger { background: transparent; color: #bf2600; border: 1px solid #ffebe6; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.1s; }
.zp-btn-danger:hover { background: #ffebe6; }
.zp-file-upload-btn { display: inline-block; background: #f4f5f7; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; color: #172b4d; font-size: 14px; border: 1px solid #dfe1e6; transition: background 0.1s; }
.zp-file-upload-btn:hover { background: #ebecf0; }

.zp-row { display: flex; gap: 20px; margin-bottom: 24px; }
.zp-col { flex: 1; }
.zp-section { margin-bottom: 24px; }
.zp-members-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.zp-member-tag { background: #f4f5f7; border-radius: 100px; padding: 4px 12px; font-size: 13px; color: #172b4d; display: inline-flex; align-items: center; font-weight: 500; border: 1px solid #ebecf0; }
.zp-remove-member { margin-left: 8px; cursor: pointer; color: #6b778c; font-size: 16px; line-height: 1; }
.zp-remove-member:hover { color: #bf2600; }

.zp-col-placeholder { background: rgba(0,0,0,0.04); border-radius: 12px; min-height: 100px; margin-bottom: 8px; border: 2px dashed rgba(0,0,0,0.1); }
.zp-placeholder { background: rgba(9,30,66,0.04); border-radius: 8px; min-height: 40px; margin-bottom: 10px; }
.zp-col-edit-input { width: 100%; font-size: 15px; font-weight: 700; padding: 4px; border: 2px solid var(--zp-primary); border-radius: 4px; }

.zp-suggestions { margin-top: 12px; }
.zp-suggested-tag { 
    display: inline-flex;
    align-items: center;
    font-size: 11px; 
    background: #fff; 
    border: 1px solid #dfe1e6; 
    padding: 3px 8px; 
    border-radius: 100px; 
    margin: 0 4px 4px 0; 
    cursor: pointer; 
    color: #5e6c84;
    transition: all 0.1s ease;
}
.zp-suggested-tag:hover { 
    background: #ebecf0; 
    color: #172b4d;
    border-color: #c1c7d0;
}
.zp-delete-suggestion {
    margin-left: 5px;
    color: #ff5630;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    display: none;
}
.zp-suggested-tag:hover .zp-delete-suggestion { display: inline; }

/* Variables are injected via inline style in PHP */
:root {
    --zp-bg-board: #F4F5F7;
    --zp-bg-column: #FFFFFF;
    --zp-radius: 12px;
    --zp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}