/* --- BASE & VARIABLES --- */
#zpp-kanban-container { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background-color: var(--zpp-bg-board);
    padding: 20px;
    border-radius: var(--zpp-radius);
    box-sizing: border-box;
    width: 100%;
}

/* --- CALENDAR GRID --- */
.zpp-calendar-nav { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; font-size: 18px; font-weight: bold; color: #172b4d; }
.zpp-cal-nav-btn { text-decoration: none; color: var(--zpp-primary); font-size: 24px; }
.zpp-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; background: #fff; padding: 20px; border-radius: 12px; }
.zpp-cal-head { font-weight: bold; text-align: center; color: #5e6c84; padding-bottom: 10px; border-bottom: 1px solid #ebecf0; }
.zpp-cal-cell { min-height: 100px; border: 1px solid #ebecf0; border-radius: 6px; padding: 5px; position: relative; background: #fafbfc; }
.zpp-cal-cell.empty { background: #fff; border: none; }
.zpp-day-num { position: absolute; top: 5px; right: 5px; font-size: 12px; font-weight: 600; color: #6b778c; }

/* Mini Cards in Calendar */
.zpp-mini-card { 
    padding: 6px !important; 
    margin-bottom: 4px !important; 
    border-radius: 4px !important; 
    font-size: 11px !important; 
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.zpp-mini-title { font-weight: 600; color: #172b4d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zpp-mini-meta { display: flex; justify-content: flex-end; margin-top: 2px; }
.zpp-mini-member { font-size: 9px; background: rgba(0,0,0,0.1); padding: 1px 4px; border-radius: 4px; }

/* --- LIST VIEW --- */
.zpp-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.zpp-list-table th, .zpp-list-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ebecf0;
}
.zpp-list-table th {
    background: #f4f5f7;
    font-weight: 600;
    color: #5e6c84;
    font-size: 13px;
    text-transform: uppercase;
}
.zpp-list-table tr.zpp-task-card:hover {
    background-color: #fafbfc;
    cursor: pointer;
}

/* --- TOP MENU BAR --- */
.zpp-top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dfe1e6;
}

.zpp-views-selector { display: flex; gap: 5px; }
.zpp-view-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #5e6c84;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.zpp-view-btn:hover { background: rgba(9, 30, 66, 0.04); color: #172b4d; }
.zpp-view-btn.active { background: var(--zpp-primary-light); color: var(--zpp-primary); font-weight: 600; }

.zpp-board-selector-group { display: flex; align-items: center; gap: 10px; }
.zpp-select-board {
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #dfe1e6;
    color: #172b4d;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.zpp-btn-create-project {
    background: #00875A;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.zpp-btn-create-project:hover { background: #006644; color: #fff; }

/* --- TOOLBAR --- */
.zpp-board-toolbar { display: flex !important; margin-bottom: 15px; align-items: center; width: 100%; clear: both; }
.zpp-spacer { flex-grow: 1; }
.zpp-btn-large {
    padding: 8px 16px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    border: none;
    font-weight: 600;
    background: var(--zpp-primary);
    color: #fff;
}

/* --- BOARD LAYOUT --- */
.zpp-board { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 15px !important; overflow-x: auto !important; padding-bottom: 20px; align-items: flex-start !important; min-height: 70vh; width: 100% !important; }

/* --- COLUMNS --- */
.zpp-column { background: var(--zpp-bg-column); border-radius: var(--zpp-radius); width: 280px !important; min-width: 280px !important; padding: 12px !important; flex: 0 0 280px !important; display: flex !important; flex-direction: column !important; max-height: 100%; position: relative; box-shadow: var(--zpp-shadow); border: 1px solid rgba(0,0,0,0.05); margin-bottom: 0 !important; }
.zpp-column-header { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 10px !important; cursor: grab; width: 100% !important; }
.zpp-header-title-group { display: flex !important; align-items: center !important; gap: 8px !important; flex-grow: 1 !important; }
.zpp-column-title { color: #172b4d; font-size: 14px !important; font-weight: 700 !important; margin: 0 !important; }
.zpp-column-count { background-color: var(--zpp-primary-light); color: var(--zpp-primary); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 20px; min-width: 16px; text-align: center; }
.zpp-delete-column { cursor: pointer; color: #a5adba; transition: color 0.2s; font-size: 16px; }
.zpp-delete-column:hover { color: #bf2600; }
.zpp-task-list { min-height: 50px; flex-grow: 1; margin-bottom: 5px; }

/* --- CARDS --- */
.zpp-task-card { background: #fff !important; padding: 10px !important; margin-bottom: 8px !important; border-radius: 6px !important; box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important; border: 1px solid #ebecf0 !important; cursor: pointer !important; color: #172b4d !important; font-size: 13px !important; transition: transform 0.2s, box-shadow 0.2s !important; position: relative !important; z-index: 1 !important; height: auto !important; max-height: none !important; min-height: auto !important; overflow: visible !important; }
.zpp-task-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.08) !important; }
.zpp-card-meta { display: flex !important; flex-wrap: wrap !important; gap: 4px !important; margin-top: 6px !important; align-items: center !important; }
.zpp-card-labels { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; align-items: center; width: 100%; }
.zpp-card-label-text { padding: 2px 6px; border-radius: 3px; font-size: 10px; font-weight: 600; color: #fff; display: inline-block; line-height: 1.2; }
.zpp-card-progress { display: flex; align-items: center; gap: 6px; margin-top: 8px; width: 100%; }
.zpp-progress-bar-bg { flex-grow: 1; background-color: #f0f0f0; height: 4px; border-radius: 2px; overflow: hidden; }
.zpp-progress-bar-fill { height: 100%; background-color: var(--zpp-primary); width: 0%; }
.zpp-progress-text { font-size: 10px; color: #5e6c84; font-weight: 600; min-width: 24px; text-align: right; }

.zpp-badge { font-size: 10px; border-radius: 3px; padding: 2px 5px; font-weight: 600; display: inline-flex; align-items: center; line-height: 1; }
.zpp-badge-ok { background: #e3fcef; color: #006644; }
.zpp-badge-warning { background: #fff0b3; color: #172b4d; }
.zpp-badge-danger { background: #ffebe6; color: #bf2600; }
.zpp-badge-date { background: #f4f5f7; color: #42526e; }
.zpp-badge-member { background: var(--zpp-primary-light); color: var(--zpp-primary); border-radius: 10px; }
.zpp-card-paperclip { color: var(--zpp-primary); display: inline-flex; align-items: center; }
.zpp-card-paperclip .dashicons { font-size: 12px; width: 12px; height: 12px; }

/* --- ADD BUTTONS --- */
.zpp-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; }
.zpp-add-task-btn:hover { background-color: rgba(9,30,66,.08); color: #172b4d; }
.zpp-quick-add-input { width: 100%; padding: 8px; border: 2px solid var(--zpp-primary); border-radius: 4px; box-sizing: border-box; margin-bottom: 5px; display: block; }
.zpp-add-column-wrapper { min-width: 280px; padding-top: 0; }
.zpp-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; }
.zpp-add-column-btn:hover { background: rgba(0,0,0,0.08); border-color: #a5adba; }

/* --- MODAL --- */
.zpp-modal { position: fixed !important; z-index: 99999 !important; left: 0; top: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.zpp-modal-overlay { position: absolute; width: 100%; height: 100%; background: rgba(23, 43, 77, 0.6); backdrop-filter: blur(2px); }
.zpp-modal-content { 
    background: #fff !important; 
    width: 750px !important; 
    max-width: 95% !important; 
    max-height: 85vh !important; 
    border-radius: 10px !important; 
    position: relative !important; 
    display: flex !important; 
    flex-direction: column !important; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.25) !important; 
    overflow: hidden !important; 
    /* Fix for Z-Index layering */
    z-index: 100000 !important;
}
#zpp-task-form { display: flex !important; flex-direction: column !important; height: 100% !important; overflow: hidden !important; width: 100% !important; }
.zpp-modal-header { padding: 15px 25px 10px 25px; border-bottom: 1px solid #f4f5f7; flex-shrink: 0 !important; }
.zpp-modal-body { padding: 15px 25px; overflow-y: auto !important; flex-grow: 1 !important; min-height: 0 !important; }
.zpp-modal-footer { padding: 12px 25px; background: #f9fafc; display: flex !important; justify-content: space-between !important; align-items: center !important; border-top: 1px solid #ebecf0; flex-shrink: 0 !important; }

/* Modal Internals */
.zpp-row { display: flex; gap: 15px; margin-bottom: 12px; } .zpp-col { flex: 1; min-width: 0; } .zpp-section { margin-bottom: 12px; border-bottom: 1px dashed #ebecf0; padding-bottom: 12px; } .zpp-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.zpp-label-small { display: block; font-size: 10px; font-weight: 700; color: #5e6c84; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.zpp-input-title { width: 100%; border: none; font-size: 20px; font-weight: 700; color: #172b4d; padding: 4px 0; background: transparent; outline: none; border-bottom: 2px solid transparent; transition: border 0.3s; }
.zpp-input-title:focus { border-bottom-color: var(--zpp-primary); }
.zpp-input, .zpp-select, .zpp-textarea, .zpp-select-small, .zpp-input-small { width: 100%; padding: 6px 10px; border: 2px solid #dfe1e6; border-radius: 5px; background: #fafbfc; box-sizing: border-box; font-size: 13px; color: #172b4d; transition: all 0.2s; min-height: 34px; }
.zpp-range { width: 100%; cursor: pointer; } #zpp-progress-value { font-size: 14px; font-weight: 600 !important; color: #172b4d; }
.zpp-textarea { resize: vertical; min-height: 60px; line-height: 1.4; font-family: inherit; }
.zpp-input:focus, .zpp-select:focus, .zpp-textarea:focus, .zpp-input-small:focus { background: #fff; border-color: var(--zpp-primary); outline: none; box-shadow: 0 0 0 2px var(--zpp-primary-light); }

/* Labels Manager */
.zpp-labels-wrapper { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.zpp-label-item { padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #fff; cursor: pointer; border: 2px solid transparent; opacity: 0.8; transition: all 0.1s; }
.zpp-label-item:hover { opacity: 1; transform: translateY(-1px); }
.zpp-label-item.selected { border-color: #172b4d; box-shadow: 0 2px 4px rgba(0,0,0,0.1); opacity: 1; }
.zpp-color-swatches { display: flex; gap: 4px; }
.zpp-swatch { width: 20px; height: 20px; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.zpp-swatch.selected { border-color: #172b4d; transform: scale(1.1); }

/* Checklist */
.zpp-checklist-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.zpp-checklist-input { flex-grow: 1; border: 1px solid transparent !important; background: transparent !important; padding: 4px !important; min-height: 28px !important; }
.zpp-checklist-input:focus { border-color: var(--zpp-primary) !important; background: #fff !important; }
.zpp-checklist-done { text-decoration: line-through; color: #a5adba; }
.zpp-btn-dashed-small { background: transparent; border: 1px dashed #dfe1e6; color: #5e6c84; padding: 4px 8px; border-radius: 4px; font-size: 11px; cursor: pointer; width: auto; }
.zpp-btn-dashed-small:hover { border-color: var(--zpp-primary); color: var(--zpp-primary); }
.zpp-delete-checklist-item { color: #a5adba; cursor: pointer; font-size: 14px; }
.zpp-delete-checklist-item:hover { color: #bf2600; }

/* Members & Suggestions */
.zpp-members-container { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; min-height: 26px; }
.zpp-member-tag { background: #e3fcef; color: #006644; border-radius: 100px; padding: 3px 8px; font-size: 11px; display: inline-flex; align-items: center; font-weight: 600; }
.zpp-remove-member { margin-left: 6px; cursor: pointer; opacity: 0.6; font-size: 14px; line-height: 1; }
.zpp-remove-member:hover { opacity: 1; color: #bf2600; }
.zpp-suggestions { margin-top: 6px; }
.zpp-suggested-tag { display: inline-flex; align-items: center; font-size: 10px; background: #fff; border: 1px solid #dfe1e6; padding: 2px 8px; border-radius: 100px; margin: 0 4px 4px 0; cursor: pointer; color: #5e6c84; transition: all 0.1s ease; }
.zpp-suggested-tag:hover { background: #ebecf0; color: #172b4d; border-color: #c1c7d0; }
.zpp-delete-suggestion { margin-left: 4px; color: #ff5630; font-weight: bold; font-size: 11px; line-height: 1; display: none; }
.zpp-suggested-tag:hover .zpp-delete-suggestion { display: inline; }

/* File Manager */
.zpp-file-list { margin-bottom: 8px; display: flex; flex-direction: column; gap: 5px; }
.zpp-file-item { background: #f4f5f7; padding: 6px 10px; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; border: 1px solid #ebecf0; }
.zpp-file-name-link { color: #0052cc; text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.zpp-btn-remove-file { color: #6b778c; cursor: pointer; font-size: 14px; }
.zpp-btn-remove-file:hover { color: #bf2600; }
.zpp-btn-add-file { display: inline-flex; align-items: center; gap: 6px; color: var(--zpp-primary); background: #fff; border: 1px dashed #dfe1e6; padding: 6px 10px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%; justify-content: center; }
.zpp-btn-add-file:hover { border-color: var(--zpp-primary); background: var(--zpp-primary-light); }
.zpp-file-preview-small { font-size: 10px; color: #006644; margin-top: 4px; font-weight: 600; text-align: center; }

/* Comments */
.zpp-comments-container { margin-bottom: 10px; max-height: 150px; overflow-y: auto; background: #f8f9fa; padding: 10px; border-radius: 6px; border: 1px solid #ebecf0; }
.zpp-comment-item { background: #fff; padding: 8px 10px; border-radius: 6px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); border: 1px solid #ebecf0; }
.zpp-comment-meta { font-size: 10px; font-weight: 700; color: var(--zpp-primary); margin-bottom: 3px; display: flex; justify-content: space-between; }
.zpp-comment-text { font-size: 12px; color: #172b4d; line-height: 1.4; }
.zpp-delete-comment { cursor: pointer; color: #6b778c; opacity: 0.5; }
.zpp-delete-comment:hover { opacity: 1; color: #bf2600; }
.zpp-comment-input-group { display: flex; gap: 8px; align-items: center; }
.zpp-select-small { width: auto !important; min-width: 100px; padding: 4px 8px; min-height: 30px; }

/* Buttons */
.zpp-btn-primary { background: var(--zpp-primary) !important; color: #fff !important; border: none !important; padding: 8px 16px !important; border-radius: 5px !important; cursor: pointer !important; font-weight: 600 !important; font-size: 13px; transition: filter 0.2s; }
.zpp-btn-primary:hover { filter: brightness(110%); }
.zpp-btn-secondary { background: #ebecf0; color: #172b4d; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-weight: 600; font-size: 12px; }
.zpp-btn-secondary:hover { background: #dfe1e6; }
.zpp-btn-danger { background: transparent; color: #bf2600; border: 1px solid #ffebe6; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: 600; font-size: 13px; }
.zpp-btn-danger:hover { background: #ffebe6; }

/* Variables */
:root { --zpp-bg-board: #EBEEF2; --zpp-bg-column: #FFFFFF; --zpp-radius: 14px; --zpp-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }