/* Domini Planner v2.0.0 — Kitchen.co inspired */
:root {
    --dp-accent: #0148FA;
    --dp-accent-light: #E8EEFF;
    --dp-accent-hover: #0039CC;
    --dp-bg: #FFFFFF;
    --dp-bg-white: #FFFFFF;
    --dp-text: #292929;
    --dp-text-secondary: #6B6B6B;
    --dp-text-muted: #9A9A9A;
    --dp-border: #E8E6E3;
    --dp-border-hover: #D0CEC9;
    --dp-radius: 12px;
    --dp-radius-sm: 8px;
    --dp-radius-xs: 6px;
    --dp-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --dp-shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
    --dp-transition: 0.2s ease;
    --dp-sidebar-w: 260px;
    --dp-amber: #F59E0B;
    --dp-amber-light: #FEF3C7;
    --dp-green: #10B981;
    --dp-green-light: #D1FAE5;
    --dp-red: #EF4444;
    --dp-red-light: #FEE2E2;
}

#domini-planner-app {
    display: flex;
    min-height: calc(100vh - 60px);
    background: var(--dp-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dp-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Override FC Frame wrapper constraints */
.wp_content_wrapper.wp_fallback_theme {
    max-width: 100% !important;
    padding: 0 !important;
}
.fcom_wp_content_body {
    max-width: 100% !important;
    padding: 0 !important;
}
.fcom_wp_content_title {
    display: none !important;
}

/* ===== SIDEBAR ===== */
.dp-sidebar {
    width: var(--dp-sidebar-w);
    min-width: var(--dp-sidebar-w);
    background: var(--dp-bg-white);
    border-right: 1px solid var(--dp-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 0;
}

.dp-sidebar-header {
    padding: 0 16px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dp-text);
    flex: 1;
}

.dp-sidebar-actions {
    display: flex;
    gap: 4px;
}

.dp-sidebar-nav {
    padding: 0 8px;
    flex: 1;
}

.dp-sidebar-bottom {
    padding: 8px;
    border-top: 1px solid var(--dp-border);
}

/* Profile incomplete alert */
.dp-nav-profile-incomplete {
    color: #EF4444 !important;
    background: #FEF2F2 !important;
    border: 1px solid #FECACA !important;
    border-radius: var(--dp-radius-sm);
}

.dp-nav-profile-incomplete:hover {
    background: #FEE2E2 !important;
}

.dp-nav-profile-incomplete svg {
    stroke: #EF4444 !important;
}

.dp-nav-profile-alert {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #EF4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.dp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    transition: background var(--dp-transition);
    color: var(--dp-text);
    text-decoration: none;
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dp-nav-item:hover {
    background: var(--dp-bg);
}

.dp-nav-item.active {
    background: var(--dp-accent-light);
    color: var(--dp-accent);
    font-weight: 500;
}

.dp-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dp-nav-section {
    padding: 16px 12px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dp-text-muted);
}

.dp-nav-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 16px;
    border-radius: var(--dp-radius-xs);
    cursor: pointer;
    transition: background var(--dp-transition);
    font-size: 13px;
    color: var(--dp-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dp-nav-folder:hover {
    background: var(--dp-bg);
}

.dp-nav-folder.active {
    background: var(--dp-accent-light);
    color: var(--dp-accent);
}

.dp-nav-folder-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.dp-folder-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dp-accent);
    flex-shrink: 0;
}

.dp-nav-subfolder {
    padding-left: 36px;
    font-size: 13px;
}

.dp-nav-folder-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--dp-text-muted);
    flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.dp-main {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ===== BREADCRUMB ===== */
.dp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    font-size: 13px;
    color: var(--dp-text-secondary);
}

.dp-breadcrumb-item {
    cursor: pointer;
    color: var(--dp-text-secondary);
    text-decoration: none;
    transition: color var(--dp-transition);
}

.dp-breadcrumb-item:hover {
    color: var(--dp-accent);
}

.dp-breadcrumb-sep {
    color: var(--dp-text-muted);
    font-size: 12px;
}

/* ===== BANNER ===== */
.dp-banner {
    height: 200px;
    margin: 0 24px;
    border-radius: var(--dp-radius);
    overflow: hidden;
    position: relative;
    background: #F0F0EE;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.dp-banner-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.dp-banner-btn {
    padding: 6px 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: var(--dp-radius-xs);
    cursor: pointer;
    font-size: 12px;
    color: var(--dp-text);
    backdrop-filter: blur(4px);
    transition: background var(--dp-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dp-banner-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.dp-banner-btn:hover {
    background: #fff;
}

/* ===== LOGO ROW ===== */
.dp-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px 0;
}

.dp-folder-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--dp-radius);
    overflow: hidden;
    border: 2px solid var(--dp-border);
    flex-shrink: 0;
}

.dp-folder-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-btn-sm {
    font-size: 12px;
    padding: 4px 10px;
}

/* ===== FOLDER HEADER ===== */
.dp-folder-header {
    padding: 16px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dp-folder-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dp-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dp-folder-desc {
    margin-top: 4px;
    color: var(--dp-text-secondary);
    font-size: 14px;
}

/* ===== TOOLBAR ===== */
.dp-toolbar {
    padding: 8px 24px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-search {
    position: relative;
    flex: 0 0 240px;
}

.dp-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    font-size: 13px;
    background: var(--dp-bg-white);
    color: var(--dp-text);
    transition: border-color var(--dp-transition);
    outline: none;
}

.dp-search input:focus {
    border-color: var(--dp-accent);
}

.dp-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: var(--dp-text-muted);
    fill: none;
    stroke-width: 1.5;
}

.dp-sort-btn {
    padding: 8px 12px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    background: var(--dp-bg-white);
    cursor: pointer;
    font-size: 13px;
    color: var(--dp-text-secondary);
    transition: all var(--dp-transition);
}

.dp-sort-btn:hover {
    border-color: var(--dp-border-hover);
}

.dp-toolbar-spacer {
    flex: 1;
}

/* ===== BUTTONS ===== */
.dp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--dp-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--dp-transition);
}

.dp-btn-primary {
    background: var(--dp-accent);
    color: #fff;
}

.dp-btn-primary:hover {
    background: var(--dp-accent-hover);
}

.dp-btn-outline {
    background: var(--dp-bg-white);
    color: var(--dp-text);
    border: 1px solid var(--dp-border);
}

.dp-btn-outline:hover {
    border-color: var(--dp-border-hover);
    background: var(--dp-bg);
}

.dp-btn-ghost {
    background: transparent;
    color: var(--dp-text-secondary);
    padding: 6px 10px;
}

.dp-btn-ghost:hover {
    background: var(--dp-bg);
    color: var(--dp-text);
}

.dp-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.dp-btn-danger {
    color: var(--dp-red);
}

.dp-btn-danger:hover {
    background: var(--dp-red-light);
}

/* ===== HOME VIEW - CARDS ===== */
.dp-home-header {
    padding: 32px 32px 0;
}

.dp-home-greeting {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dp-home-sub {
    color: var(--dp-text-secondary);
    margin-bottom: 24px;
}

.dp-create-buttons {
    display: flex;
    gap: 12px;
    padding: 0 32px 24px;
}

.dp-create-card {
    flex: 1;
    padding: 20px;
    border: 2px dashed var(--dp-border);
    border-radius: var(--dp-radius);
    cursor: pointer;
    transition: all var(--dp-transition);
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--dp-bg-white);
}

.dp-create-card:hover {
    border-color: var(--dp-accent);
    box-shadow: var(--dp-shadow-hover);
}

.dp-create-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dp-create-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.dp-create-icon-project {
    background: #E0F2FE;
    color: var(--dp-accent);
}

.dp-create-icon-immo {
    background: var(--dp-amber-light);
    color: #B45309;
}

.dp-create-label {
    font-weight: 600;
    font-size: 14px;
}

.dp-create-desc {
    font-size: 12px;
    color: var(--dp-text-secondary);
    margin-top: 2px;
}

.dp-section-title {
    padding: 0 32px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.dp-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 0 32px 32px;
}

.dp-folder-card {
    background: var(--dp-bg-white);
    border-radius: var(--dp-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--dp-transition);
    border: 1px solid var(--dp-border);
}

.dp-folder-card:hover {
    box-shadow: var(--dp-shadow-hover);
    border-color: var(--dp-border-hover);
}

.dp-card-icon-area {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F7F7F5;
    border-bottom: 1px solid var(--dp-border);
}

.dp-card-emoji {
    font-size: 36px;
    line-height: 1;
}

.dp-card-custom-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--dp-radius-sm);
    object-fit: cover;
}

.dp-card-banner {
    height: 100px;
    background: #F0F0EE;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.dp-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-card-banner-logo {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--dp-bg-white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.dp-card-banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-card-banner-immo {
    background: linear-gradient(135deg, #FEF3C7 0%, #FCD34D 100%);
}

.dp-card-body {
    padding: 12px 14px;
}

.dp-card-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-card-meta {
    font-size: 12px;
    color: var(--dp-text-muted);
}

.dp-card-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dp-badge-project {
    background: var(--dp-accent-light);
    color: var(--dp-accent);
}

.dp-badge-immo {
    background: var(--dp-amber-light);
    color: #92400E;
}

/* ===== FOLDER CONTENT LIST ===== */
.dp-content-list {
    padding: 0 24px 24px;
}

.dp-content-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    transition: background var(--dp-transition);
    border-bottom: 1px solid var(--dp-border);
}

.dp-content-item:last-child {
    border-bottom: none;
}

.dp-content-item:hover {
    background: var(--dp-bg);
}

.dp-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--dp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.dp-item-icon-folder {
    background: var(--dp-amber-light);
}

.dp-item-icon-file {
    background: #E0F2FE;
}

.dp-item-icon-image {
    background: var(--dp-green-light);
}

.dp-item-icon-pdf {
    background: var(--dp-red-light);
}

.dp-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.dp-item-info {
    flex: 1;
    min-width: 0;
}

.dp-item-name {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-item-meta {
    font-size: 12px;
    color: var(--dp-text-muted);
    margin-top: 1px;
}

.dp-item-date {
    font-size: 12px;
    color: var(--dp-text-muted);
    flex-shrink: 0;
}

.dp-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--dp-transition);
}

.dp-content-item:hover .dp-item-actions {
    opacity: 1;
}

/* ===== FILE PREVIEW ===== */
.dp-file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 0 24px 24px;
}

.dp-file-thumb {
    border-radius: var(--dp-radius-sm);
    overflow: hidden;
    border: 1px solid var(--dp-border);
    background: var(--dp-bg-white);
    cursor: pointer;
    transition: all var(--dp-transition);
}

.dp-file-thumb:hover {
    box-shadow: var(--dp-shadow-hover);
}

.dp-file-thumb-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.dp-file-thumb-body {
    padding: 8px;
}

.dp-file-thumb-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-file-thumb-size {
    font-size: 11px;
    color: var(--dp-text-muted);
}

/* ===== MODAL ===== */
.dp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: dpFadeIn 0.15s ease;
}

.dp-modal {
    background: var(--dp-bg-white);
    border-radius: var(--dp-radius);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: dpSlideUp 0.2s ease;
}

.dp-modal-header {
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dp-modal-title {
    font-size: 18px;
    font-weight: 600;
}

.dp-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dp-text-muted);
    transition: all var(--dp-transition);
}

.dp-modal-close:hover {
    background: var(--dp-bg);
    color: var(--dp-text);
}

.dp-modal-body {
    padding: 20px 24px;
}

.dp-modal-footer {
    padding: 0 24px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ===== FORM FIELDS ===== */
.dp-field {
    margin-bottom: 16px;
}

.dp-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dp-text);
}

.dp-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    font-size: 14px;
    color: var(--dp-text);
    background: var(--dp-bg-white);
    transition: border-color var(--dp-transition);
    outline: none;
    box-sizing: border-box;
}

.dp-input:focus {
    border-color: var(--dp-accent);
}

.dp-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.dp-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ===== DROPZONE ===== */
.dp-dropzone {
    border: 2px dashed var(--dp-border);
    border-radius: var(--dp-radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--dp-transition);
    margin: 0 24px 24px;
    background: var(--dp-bg-white);
}

.dp-dropzone:hover,
.dp-dropzone.dp-drag-over {
    border-color: var(--dp-accent);
    background: var(--dp-accent-light);
}

.dp-dropzone svg {
    width: 32px;
    height: 32px;
    stroke: var(--dp-text-muted);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 8px;
}

.dp-dropzone-text {
    font-size: 14px;
    color: var(--dp-text-secondary);
}

.dp-dropzone-text strong {
    color: var(--dp-accent);
}

/* ===== LIGHTBOX ===== */
.dp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dpFadeIn 0.2s ease;
}

.dp-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--dp-radius-sm);
}

.dp-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== EMPTY STATE ===== */
.dp-empty {
    padding: 60px 32px;
    text-align: center;
}

.dp-empty svg {
    width: 48px;
    height: 48px;
    stroke: var(--dp-text-muted);
    fill: none;
    stroke-width: 1;
    margin-bottom: 12px;
}

.dp-empty-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dp-empty-text {
    color: var(--dp-text-secondary);
    font-size: 14px;
}

/* ===== TOAST ===== */
.dp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dp-text);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--dp-radius-sm);
    font-size: 13px;
    z-index: 100001;
    animation: dpSlideUp 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ===== LOADING ===== */
.dp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.dp-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--dp-border);
    border-top-color: var(--dp-accent);
    border-radius: 50%;
    animation: dpSpin 0.6s linear infinite;
}

/* ===== INFO TOOLTIP ===== */
.dp-info-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--dp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--dp-text-muted);
    cursor: help;
    position: relative;
    flex-shrink: 0;
}

.dp-info-icon:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--dp-text);
    color: #fff;
    font-size: 11px;
    border-radius: var(--dp-radius-xs);
    white-space: nowrap;
    z-index: 100;
    max-width: 240px;
    white-space: normal;
    text-align: center;
    font-weight: 400;
}

/* ===== BOARD / KANBAN ===== */
.dp-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--dp-border);
    background: var(--dp-bg-white);
}

.dp-board-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--dp-text-secondary);
}

.dp-board-nav svg {
    width: 14px;
    height: 14px;
    transform: rotate(180deg);
}

.dp-kanban {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    overflow-x: auto;
    min-height: calc(100vh - 140px);
    align-items: flex-start;
}

.dp-kanban-col {
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 280px;
    background: #F7F7F5;
    border-radius: var(--dp-radius);
    display: flex;
    flex-direction: column;
}

.dp-kanban-col-header {
    padding: 12px 14px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--dp-radius) var(--dp-radius) 0 0;
}

.dp-kanban-col-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--dp-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dp-kanban-col-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--dp-bg-white);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--dp-text-secondary);
    margin-left: 6px;
    padding: 0 6px;
}

.dp-kanban-col-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity var(--dp-transition);
}

.dp-kanban-col-header:hover .dp-kanban-col-actions {
    opacity: 1;
}

.dp-kanban-tasks {
    padding: 8px;
    min-height: 60px;
    flex: 1;
    transition: background 0.15s;
    border-radius: 0 0 var(--dp-radius) var(--dp-radius);
}

.dp-kanban-drag-over {
    background: var(--dp-accent-light) !important;
}

.dp-kanban-add-task {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--dp-text-muted);
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--dp-radius-sm);
    width: 100%;
    transition: all var(--dp-transition);
}

.dp-kanban-add-task:hover {
    background: var(--dp-bg-white);
    color: var(--dp-text);
}

.dp-kanban-add-task svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

/* ===== TASK CARD ===== */
.dp-task-card {
    background: var(--dp-bg-white);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    cursor: grab;
    transition: box-shadow var(--dp-transition), border-color var(--dp-transition);
}

.dp-task-card:hover {
    box-shadow: var(--dp-shadow-hover);
    border-color: var(--dp-border-hover);
}

.dp-task-card.dp-task-dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.dp-task-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dp-task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.dp-task-title {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    color: var(--dp-text);
    line-height: 1.3;
}

.dp-task-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity var(--dp-transition);
}

.dp-task-card:hover .dp-task-actions {
    opacity: 1;
}

.dp-task-desc {
    font-size: 12px;
    color: var(--dp-text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.dp-task-due {
    font-size: 11px;
    color: var(--dp-text-secondary);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dp-task-overdue {
    color: var(--dp-red);
    font-weight: 500;
}

/* ===== TIMER ===== */
.dp-task-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--dp-border);
}

.dp-timer-display {
    font-family: var(--font-mono, 'SF Mono', 'Monaco', monospace);
    font-size: 13px;
    font-weight: 500;
    color: var(--dp-text);
    min-width: 60px;
}

.dp-timer-btn {
    padding: 3px 8px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-xs);
    background: var(--dp-bg-white);
    font-size: 11px;
    cursor: pointer;
    color: var(--dp-text-secondary);
    transition: all var(--dp-transition);
}

.dp-timer-btn:hover {
    background: var(--dp-bg);
}

.dp-timer-start {
    color: var(--dp-green);
    border-color: var(--dp-green);
}

.dp-timer-start:hover {
    background: var(--dp-green-light);
}

.dp-timer-stop {
    color: var(--dp-red);
    border-color: var(--dp-red);
}

.dp-timer-stop:hover {
    background: var(--dp-red-light);
}

.dp-timer-reset {
    color: var(--dp-text-muted);
}

/* ===== DASHBOARD KPIs ===== */
.dp-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 0 32px 20px;
}

.dp-kpi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--dp-bg-white);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    transition: box-shadow var(--dp-transition);
}

.dp-kpi-card:hover {
    box-shadow: var(--dp-shadow-hover);
}

.dp-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dp-kpi-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.dp-kpi-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--dp-text);
    line-height: 1.2;
}

.dp-kpi-label {
    font-size: 12px;
    color: var(--dp-text-muted);
}

/* ===== DASHBOARD GRID ===== */
.dp-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 32px 20px;
}

.dp-dash-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dp-dash-card {
    background: var(--dp-bg-white);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    overflow: hidden;
}

.dp-dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--dp-border);
}

.dp-dash-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dp-text);
}

.dp-dash-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: var(--dp-accent-light);
    color: var(--dp-accent);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
    padding: 0 7px;
}

.dp-dash-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--dp-text-muted);
}

/* Dashboard task list */
.dp-dash-task-list {
    padding: 4px 0;
}

.dp-dash-task {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--dp-border);
    transition: background var(--dp-transition);
}

.dp-dash-task:last-child {
    border-bottom: none;
}

.dp-dash-task:hover {
    background: var(--dp-bg);
}

.dp-dash-task-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.dp-dash-task-info {
    flex: 1;
    min-width: 0;
}

.dp-dash-task-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--dp-text);
    display: block;
}

.dp-dash-task-meta {
    font-size: 12px;
    color: var(--dp-text-muted);
    display: block;
    margin-top: 2px;
}

/* Dashboard stats */
.dp-dash-stats {
    display: flex;
    padding: 16px;
    gap: 16px;
}

.dp-dash-stat {
    flex: 1;
    text-align: center;
}

.dp-dash-stat-val {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--dp-text);
}

.dp-dash-stat-label {
    display: block;
    font-size: 11px;
    color: var(--dp-text-muted);
    margin-top: 2px;
}

/* Calendar wrap */
.dp-calendar-wrap {
    padding: 0;
}

.dp-calendar-wrap iframe {
    display: block;
    border-radius: 0 0 var(--dp-radius) var(--dp-radius);
}

/* Activity feed */
.dp-dash-activity {
    padding: 4px 0;
}

.dp-dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--dp-border);
    font-size: 13px;
}

.dp-dash-activity-item:last-child {
    border-bottom: none;
}

.dp-dash-activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dp-accent);
    flex-shrink: 0;
    margin-top: 6px;
}

.dp-dash-activity-text {
    flex: 1;
    color: var(--dp-text-secondary);
    line-height: 1.4;
}

.dp-dash-activity-time {
    font-size: 11px;
    color: var(--dp-text-muted);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dp-kpi-row {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px 16px;
    }
    .dp-dash-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 16px;
    }
}

/* ===== CREATE MENU DROPDOWN ===== */
.dp-create-menu-wrap {
    position: relative;
}

.dp-create-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 300px;
    background: var(--dp-bg-white);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    padding: 6px;
    animation: dpSlideUp 0.15s ease;
}

.dp-create-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    transition: background var(--dp-transition);
}

.dp-create-menu-item:hover {
    background: var(--dp-bg);
}

.dp-create-menu-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--dp-text);
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
    margin-top: 2px;
}

.dp-create-menu-item strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--dp-text);
}

.dp-create-menu-item span {
    display: block;
    font-size: 12px;
    color: var(--dp-text-muted);
    margin-top: 1px;
}

.dp-create-menu-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== ICON PICKER ===== */
.dp-icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding: 4px 0;
}

.dp-icon-option {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    background: var(--dp-bg-white);
    cursor: pointer;
    font-size: 18px;
    transition: all var(--dp-transition);
    padding: 0;
    line-height: 1;
}

.dp-icon-option:hover {
    border-color: var(--dp-accent);
    background: var(--dp-accent-light);
}

.dp-icon-option.dp-icon-selected {
    border-color: var(--dp-accent);
    background: var(--dp-accent-light);
    box-shadow: 0 0 0 1px var(--dp-accent);
}

.dp-card-emoji {
    font-size: 40px;
    line-height: 1;
}

.dp-card-banner-default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes dpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dpSlideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dpSpin {
    to { transform: rotate(360deg); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    #domini-planner-app {
        flex-direction: column;
    }
    .dp-sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--dp-border);
        padding: 12px 0;
        max-height: 200px;
        overflow-y: auto;
    }
    .dp-create-buttons {
        flex-direction: column;
    }
    .dp-folder-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .dp-banner {
        margin: 0 12px;
        height: 120px;
    }
    .dp-home-header {
        padding: 24px 16px 0;
    }
    .dp-create-buttons,
    .dp-section-title,
    .dp-folder-grid {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===== QUICK TASK CARD ===== */
.dp-create-icon-task {
    background: #EDE9FE;
    color: #7C3AED;
}

/* ===== TASK BADGES (kanban cards) ===== */
.dp-task-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.dp-task-cat-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dp-task-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dp-bg-light);
}

.dp-task-icon-badge svg {
    width: 12px;
    height: 12px;
    stroke: var(--dp-text-secondary);
    fill: none;
    stroke-width: 2;
}

.dp-badge-recurring svg {
    stroke: #7C3AED;
}

.dp-badge-reminder svg {
    stroke: #F59E0B;
}

.dp-task-link-badge {
    font-size: 10px;
    color: var(--dp-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--dp-bg-light);
    padding: 2px 7px;
    border-radius: 10px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-task-link-badge svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ===== DASHBOARD: Mes taches section ===== */
.dp-dash-card-mytasks .dp-dash-card-header {
    flex-wrap: wrap;
}

.dp-dash-card-mytasks .dp-dash-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-dash-card-mytasks .dp-dash-card-title svg {
    width: 16px;
    height: 16px;
    stroke: #7C3AED;
    fill: none;
    stroke-width: 2;
}

/* ===== DASHBOARD TASK BADGES ===== */
.dp-dash-task-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.dp-task-col-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: var(--dp-bg-light);
    color: var(--dp-text-secondary);
}

/* ===== SIDEBAR: Mes taches nav item ===== */
.dp-nav-item svg {
    flex-shrink: 0;
}

.dp-nav-item .dp-nav-folder-count {
    margin-left: auto;
}

/* ===== DOMINI DOT (blue circle logo) ===== */
.dp-domini-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0148FA;
    vertical-align: middle;
}

.dp-card-emoji .dp-domini-dot,
.dp-nav-folder-icon .dp-domini-dot {
    width: 16px;
    height: 16px;
}

.dp-card-icon-area .dp-domini-dot {
    width: 32px;
    height: 32px;
}

/* ===== COLLABORATOR SEARCH (create modal + manage modal) ===== */
.dp-collab-results {
    max-height: 160px;
    overflow-y: auto;
}

.dp-collab-item {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: var(--dp-radius-sm);
    font-size: 13px;
    transition: background var(--dp-transition);
}

.dp-collab-item:hover {
    background: var(--dp-bg-light);
}

.dp-collab-no-result {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--dp-text-secondary);
    font-style: italic;
}

.dp-collab-selected-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dp-accent);
    min-height: 20px;
}

.dp-collab-selected-name svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.dp-collab-remove svg {
    width: 12px;
    height: 12px;
}

/* ===== MEMBER MANAGEMENT MODAL ===== */
.dp-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dp-border);
}

.dp-member-row:last-child {
    border-bottom: none;
}

.dp-member-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.dp-member-role {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--dp-bg-light);
    color: var(--dp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dp-member-pending {
    background: #FEF3C7;
    color: #B45309;
}

/* ===== ACTIVITY CONTENT LAYOUT ===== */
.dp-dash-activity-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dp-dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dp-dash-activity-text {
    font-size: 13px;
    line-height: 1.4;
}

.dp-dash-activity-time {
    font-size: 11px;
    color: var(--dp-text-secondary);
}

/* ===== SETUP MODULES MODAL ===== */
.dp-modules-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dp-module-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid var(--dp-border);
    border-radius: var(--dp-radius);
    cursor: pointer;
    transition: all var(--dp-transition);
    background: var(--dp-bg-white);
}

.dp-module-card:hover {
    border-color: var(--dp-accent);
    background: var(--dp-accent-light);
}

.dp-module-card:has(input:checked) {
    border-color: var(--dp-accent);
    background: #E8EEFF;
}

.dp-module-check {
    width: 18px;
    height: 18px;
    accent-color: var(--dp-accent);
    flex-shrink: 0;
}

.dp-module-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--dp-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dp-module-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--dp-text-secondary);
    fill: none;
    stroke-width: 1.5;
}

.dp-module-card:has(input:checked) .dp-module-icon {
    background: var(--dp-accent);
}

.dp-module-card:has(input:checked) .dp-module-icon svg {
    stroke: white;
}

.dp-module-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dp-module-info strong {
    font-size: 13px;
    font-weight: 600;
}

.dp-module-info span {
    font-size: 11px;
    color: var(--dp-text-secondary);
}

/* Custom folder items */
.dp-custom-folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--dp-bg-light);
    border-radius: var(--dp-radius-sm);
    margin-bottom: 6px;
}

.dp-custom-folder-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

/* ===== CHECKLIST SECTION IN FOLDER ===== */
.dp-checklist-section {
    margin: 16px 0;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    background: var(--dp-bg-white);
    overflow: hidden;
}

.dp-checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    flex-wrap: wrap;
    gap: 8px;
}

.dp-checklist-header:hover {
    background: var(--dp-bg-light);
}

.dp-checklist-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dp-checklist-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.dp-checklist-title svg {
    width: 14px;
    height: 14px;
    stroke: #10B981;
    fill: none;
    stroke-width: 2;
}

.dp-checklist-mini-progress {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-checklist-mini-bar {
    width: 60px;
    height: 5px;
    background: var(--dp-border);
    border-radius: 3px;
    overflow: hidden;
}

.dp-checklist-mini-fill {
    height: 100%;
    background: #10B981;
    border-radius: 3px;
    transition: width 0.3s;
}

.dp-checklist-mini-text {
    font-size: 11px;
    color: var(--dp-text-secondary);
    font-weight: 500;
}

.dp-cl-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.dp-cl-pill-uploaded { background: #FEF3C7; color: #B45309; }
.dp-cl-pill-rejected { background: #FEE2E2; color: #EF4444; }
.dp-cl-pill-pending { background: var(--dp-bg-light); color: var(--dp-text-secondary); }
.dp-cl-pill-draft { background: #EFF6FF; color: #3B82F6; }
.dp-cl-pill-complete {
    background: #D1FAE5;
    color: #10B981;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.dp-cl-pill-complete svg {
    width: 10px;
    height: 10px;
    stroke: #10B981;
    fill: none;
    stroke-width: 2;
}

.dp-checklist-toggle-icon {
    transition: transform 0.2s;
    display: flex;
}

.dp-checklist-toggle-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--dp-text-secondary);
    fill: none;
    stroke-width: 2;
}

.dp-checklist-info-bar {
    padding: 8px 16px;
    background: var(--dp-bg-light);
    border-bottom: 1px solid var(--dp-border);
    font-size: 11px;
    color: var(--dp-text-secondary);
}

.dp-checklist-info-icon {
    cursor: help;
}

.dp-checklist-items {
    padding: 0;
}

.dp-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--dp-border);
    transition: background 0.15s;
}

.dp-checklist-item:last-child {
    border-bottom: none;
}

.dp-checklist-item:hover {
    background: var(--dp-bg-light);
}

.dp-checklist-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.dp-checklist-item-info {
    flex: 1;
    min-width: 0;
}

.dp-checklist-item-label {
    font-size: 13px;
    font-weight: 500;
}

.dp-checklist-required {
    color: #EF4444;
    font-weight: 700;
}

.dp-checklist-item-desc {
    font-size: 11px;
    color: var(--dp-text-secondary);
    display: block;
    margin-top: 2px;
}

.dp-checklist-item-comment {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #EF4444;
    margin-top: 4px;
    font-style: italic;
}

.dp-checklist-item-comment svg {
    width: 10px;
    height: 10px;
    stroke: #EF4444;
    fill: none;
    stroke-width: 2;
}

.dp-checklist-status-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

.dp-checklist-item-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    align-self: center;
}

/* Multi-files list in checklist item */
.dp-cl-files-list {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dp-cl-file-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--dp-bg-light);
    border-radius: 4px;
    font-size: 12px;
}

.dp-cl-file-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.dp-cl-file-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--dp-text-secondary);
    fill: none;
    stroke-width: 1.5;
}

.dp-cl-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-cl-file-actions {
    display: flex;
    gap: 1px;
    flex-shrink: 0;
}

.dp-btn-xs {
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dp-btn-xs svg {
    width: 11px;
    height: 11px;
}

/* ===== CHECKBOX CARDS (multi-select) ===== */
.dp-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.dp-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--dp-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
    user-select: none;
}

.dp-checkbox-card:hover {
    border-color: var(--dp-accent);
    background: #F8FAFF;
}

.dp-checkbox-card input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--dp-accent);
    width: 16px;
    height: 16px;
}

.dp-checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: var(--dp-accent);
    background: #F0F5FF;
    box-shadow: 0 0 0 1px var(--dp-accent);
}

.dp-checkbox-card-body {
    flex: 1;
    min-width: 0;
}

.dp-checkbox-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dp-text);
    margin-bottom: 2px;
}

.dp-checkbox-card-desc {
    font-size: 11px;
    color: var(--dp-text-secondary);
    line-height: 1.4;
}

/* ===== CLIENT BLOCKS (one per type) ===== */

/* Message button alert */
.dp-btn-msg-alert {
    border-color: var(--dp-accent) !important;
    color: var(--dp-accent) !important;
}

.dp-msg-badge {
    background: var(--dp-bg-light);
    color: var(--dp-text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 2px;
}

.dp-msg-badge-new {
    background: var(--dp-accent);
    color: white;
}

.dp-nav-msg-count {
    background: var(--dp-accent);
    color: white;
}

.dp-nav-badge-red {
    background: #EF4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    padding: 2px 7px;
    border-radius: 10px;
    text-align: center;
    animation: dp-badge-pulse 2s infinite;
}

@keyframes dp-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

/* Clickable dashboard tasks */
.dp-dash-task-clickable {
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.12s;
    padding: 6px 8px;
    margin: -6px -8px;
}

.dp-dash-task-clickable:hover {
    background: var(--dp-bg-light);
}

/* ===== INBOX VIEW ===== */
.dp-inbox-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--dp-bg-white);
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius);
    overflow: hidden;
}

.dp-inbox-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--dp-border);
    position: relative;
}

.dp-inbox-item:last-child { border-bottom: none; }

.dp-inbox-item:hover { background: var(--dp-bg-light); }

.dp-inbox-item-new {
    background: #F0F5FF;
}

.dp-inbox-item-new:hover {
    background: #E8EEFF;
}

.dp-inbox-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0148FA 0%, #3B82F6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}

.dp-inbox-content {
    flex: 1;
    min-width: 0;
}

.dp-inbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.dp-inbox-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dp-text);
}

.dp-inbox-time {
    font-size: 11px;
    color: var(--dp-text-secondary);
    flex-shrink: 0;
}

.dp-inbox-folder {
    font-size: 11px;
    color: var(--dp-accent);
    font-weight: 500;
    background: var(--dp-bg-light);
    padding: 2px 8px;
    border-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.dp-inbox-preview {
    font-size: 13px;
    color: var(--dp-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 500px;
}

.dp-inbox-you {
    font-weight: 500;
    color: var(--dp-text);
}

.dp-inbox-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dp-inbox-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    min-width: 80px;
}

.dp-inbox-avatar-active {
    box-shadow: 0 0 0 3px rgba(1, 72, 250, 0.2);
}

.dp-inbox-count {
    background: var(--dp-bg-light);
    color: var(--dp-text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.dp-inbox-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dp-accent);
    flex-shrink: 0;
}

.dp-page-header {
    margin-bottom: 24px;
}

.dp-page-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.dp-page-header h1 svg {
    width: 24px;
    height: 24px;
}

.dp-client-block {
    background: var(--dp-bg-light);
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}

.dp-client-block-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dp-border);
}

.dp-client-block-icon {
    font-size: 20px;
    line-height: 1;
}

.dp-client-block-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dp-text);
    text-transform: capitalize;
}

/* ===== FILE TO FOLDER PICKER ===== */
.dp-file-to-folder-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-file-to-folder-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--dp-border);
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    transition: all var(--dp-transition);
    font-size: 13px;
    font-weight: 500;
}

.dp-file-to-folder-option:hover {
    background: var(--dp-accent-light);
    border-color: var(--dp-accent);
}

.dp-file-to-folder-option svg {
    width: 16px;
    height: 16px;
    stroke: #B45309;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

/* ===== DOCUMENT EDITOR ===== */
.dp-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--dp-border);
    gap: 12px;
    flex-wrap: wrap;
}

.dp-editor-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.dp-editor-title {
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--dp-text);
    background: transparent;
    flex: 1;
    min-width: 120px;
    padding: 4px 0;
}

.dp-editor-title:focus {
    border-bottom: 2px solid var(--dp-accent);
}

.dp-editor-status {
    font-size: 11px;
    color: var(--dp-text-secondary);
    white-space: nowrap;
}

.dp-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--dp-border);
    background: var(--dp-bg-light);
    flex-wrap: wrap;
}

.dp-tb-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--dp-text);
    transition: background var(--dp-transition);
}

.dp-tb-btn:hover {
    background: var(--dp-bg-white);
    box-shadow: var(--dp-shadow);
}

.dp-tb-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.dp-tb-sep {
    width: 1px;
    height: 20px;
    background: var(--dp-border);
    margin: 0 4px;
}

.dp-editor-content {
    min-height: 500px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding: 30px 40px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dp-text);
    outline: none;
}

.dp-editor-content:focus {
    background: var(--dp-bg-white);
}

.dp-editor-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 12px;
    font-family: Arial, sans-serif;
}

.dp-editor-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 18px 0 10px;
    font-family: Arial, sans-serif;
}

.dp-editor-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 14px 0 8px;
    font-family: Arial, sans-serif;
}

.dp-editor-content p {
    margin: 0 0 10px;
}

.dp-editor-content ul,
.dp-editor-content ol {
    margin: 0 0 10px;
    padding-left: 24px;
}

.dp-editor-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
}

.dp-editor-content th,
.dp-editor-content td {
    border: 1px solid var(--dp-border);
    padding: 8px 12px;
    text-align: left;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.dp-editor-content th {
    background: var(--dp-bg-light);
    font-weight: 600;
}

.dp-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
}

.dp-editor-content a {
    color: var(--dp-accent);
    text-decoration: underline;
}

.dp-editor-content hr {
    border: none;
    border-top: 1px solid var(--dp-border);
    margin: 16px 0;
}

.dp-editor-content blockquote {
    border-left: 3px solid var(--dp-accent);
    padding-left: 16px;
    margin: 10px 0;
    color: var(--dp-text-secondary);
    font-style: italic;
}

@media print {
    .dp-sidebar, .dp-editor-header, .dp-editor-toolbar {
        display: none !important;
    }
    .dp-editor-content {
        padding: 0;
        max-height: none;
    }
}

/* ===== TOUR BUTTON ===== */
.dp-tour-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--dp-border);
    background: var(--dp-bg-white);
    color: var(--dp-text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.dp-tour-btn:hover {
    border-color: var(--dp-accent);
    color: var(--dp-accent);
    background: var(--dp-accent-light);
}

/* ===== GUIDED TOUR ===== */
.dp-tour-tooltip {
    background: var(--dp-bg-white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 20px;
    animation: dp-tour-in 0.25s ease;
}

@keyframes dp-tour-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dp-tour-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dp-text);
    margin-bottom: 6px;
}

.dp-tour-text {
    font-size: 13px;
    color: var(--dp-text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.dp-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dp-tour-counter {
    font-size: 11px;
    color: var(--dp-text-secondary);
    font-weight: 500;
}

.dp-tour-btns {
    display: flex;
    gap: 8px;
}

.dp-tour-skip {
    padding: 6px 14px;
    border: none;
    background: none;
    color: var(--dp-text-secondary);
    font-size: 12px;
    cursor: pointer;
    border-radius: var(--dp-radius-sm);
}

.dp-tour-skip:hover { background: var(--dp-bg-light); }

.dp-tour-next {
    padding: 6px 18px;
    border: none;
    background: var(--dp-accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--dp-radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}

.dp-tour-next:hover { background: #003AD6; }
