/* Frontend form */
.wptm-form-wrap {
    max-width: 640px;
    margin: 0 auto 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wptm-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

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

.wptm-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d2327;
    font-size: 14px;
}

.wptm-form-row input[type="text"],
.wptm-form-row input[type="date"],
.wptm-form-row select,
.wptm-form-row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.wptm-form-row input:focus,
.wptm-form-row select:focus,
.wptm-form-row textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

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

.wptm-hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: #646970;
}

.wptm-checkbox-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.wptm-urgent-label {
    color: #d63638;
    font-weight: 700;
}

.wptm-submit-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.wptm-submit-btn:hover {
    background: #135e96;
}

.wptm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wptm-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.wptm-message.success {
    background: #edfaef;
    color: #007017;
    border: 1px solid #00a32a;
}

.wptm-message.error {
    background: #fcf0f1;
    color: #b32d2e;
    border: 1px solid #d63638;
}

/* ========== Public Kanban ========== */
.wptm-kanban-public,
.wptm-kanban-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 0 40px;
}

.wptm-kanban-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}

.wptm-kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.wptm-kanban-column {
    flex: 1;
    min-width: 280px;
    background: #f0f0f1;
    border-radius: 12px;
    padding: 14px;
}

.wptm-kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.wptm-kanban-column-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.wptm-count {
    background: #c3c4c7;
    color: #1d2327;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 10px;
}

.wptm-empty-column {
    text-align: center;
    color: #8c8f94;
    font-size: 13px;
    padding: 24px 10px;
}

.wptm-kanban-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-left: 4px solid #2271b1;
}

.wptm-kanban-card.is-urgent {
    border-left-color: #d63638;
    background: #fff8f8;
}

.wptm-card-top {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.wptm-badge-urgent {
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.wptm-project-badge {
    background: #e7f0f7;
    color: #135e96;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.wptm-card-title {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.35;
    color: #1d2327;
}

.wptm-card-desc {
    font-size: 13px;
    color: #50575e;
    margin-bottom: 8px;
    line-height: 1.4;
}

.wptm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #646970;
}

.wptm-completed-date {
    font-size: 12px;
    color: #00a32a;
    margin-top: 8px;
    font-weight: 500;
}

/* ========== Public Report ========== */
.wptm-report-public,
.wptm-report-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 0 40px;
}

.wptm-report-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}

.wptm-report-filter {
    margin-bottom: 16px;
}

.wptm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wptm-filter-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.wptm-filter-row input[type="date"] {
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 14px;
}

.wptm-filter-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.wptm-filter-btn:hover {
    background: #135e96;
}

.wptm-report-count {
    margin: 0 0 14px;
    font-size: 14px;
    color: #50575e;
}

.wptm-report-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.wptm-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.wptm-report-table th {
    background: #f6f7f7;
    text-align: left;
    padding: 12px 14px;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.wptm-report-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.wptm-report-table tr:last-child td {
    border-bottom: none;
}

.wptm-report-table tr:hover td {
    background: #f9f9f9;
}

.wptm-td-id {
    color: #646970;
    font-weight: 500;
    white-space: nowrap;
}

.wptm-td-done {
    color: #00a32a;
    font-weight: 500;
    white-space: nowrap;
}

.wptm-urgent-mark {
    color: #d63638;
    margin-right: 4px;
}

.wptm-empty {
    text-align: center;
    color: #8c8f94;
    padding: 30px !important;
}

@media (max-width: 768px) {
    .wptm-kanban-board {
        flex-direction: column;
    }
    .wptm-kanban-column {
        min-width: 100%;
    }
}


/* Project colors and report filters */
.wptm-report-filter select { padding: 8px 10px; border: 1px solid #c3c4c7; border-radius: 6px; font-size: 14px; min-width: 160px; }
.wptm-report-table .wptm-project-badge { display: inline-block; white-space: nowrap; }
.wptm-completion-note { min-width: 180px; max-width: 360px; white-space: normal; overflow-wrap: anywhere; }
