@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&family=Hedvig+Letters+Serif:opsz@12..24&display=swap');

/* ===========================
   CSS Variables & Base
   =========================== */
:root {
    --bg-primary: #FFFFFC;
    --bg-secondary: #f9f9f9;
    --bg-card: #ffffff;
    
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    --accent: #267BD0;
    --accent-hover: #1e63a8;
    
    --success: #32A53F;
    --danger: #CD3920;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    --font-serif: 'Hedvig Letters Serif', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --transition-normal: 200ms ease;
    --bounce-bezier: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Modal */
    --modal-transition: 0.25s var(--bounce-bezier);
    --modal-bg: rgba(245, 245, 245, 0.95);
    --modal-border: rgba(0, 0, 0, 0.05);
    --modal-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    --modal-text: var(--text-primary);
    --modal-secondary-text: var(--text-secondary);
    --modal-interactive-bg: rgba(0, 0, 0, 0.05);
    --modal-interactive-hover: rgba(0, 0, 0, 0.08);
}

/* Board Themes (solid backgrounds) */
.theme-gray { background: #EFEFEF; }
.theme-red { background: #FCEDED; }
.theme-blue { background: #ECF5FC; }
.theme-green { background: #ECF7ED; }
.theme-orange { background: #FDEFE5; }
.theme-purple { background: #F5EEFA; }
.theme-coral { background: #FFEFEB; }
.theme-teal { background: #EAF7F7; }

/* Theme Color Tokens */
.theme-gray { --theme-color: #888; }
.theme-red { --theme-color: #CD3920; }
.theme-blue { --theme-color: #267BD0; }
.theme-green { --theme-color: #32A53F; }
.theme-orange { --theme-color: #D1640C; }
.theme-purple { --theme-color: #A066D3; }
.theme-coral { --theme-color: #FF664E; }
.theme-teal { --theme-color: #20ADAD; }

/* SortableJS Styles */
.sortable-ghost {
    visibility: hidden; /* Hide the ghost entirely per user request */
}

.sortable-drag {
    cursor: grabbing !important;
    opacity: 1 !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    transform: scale(1.02);
}

.kanban-board > .sortable-drag {
    box-shadow: var(--shadow-md) !important;
    transform: scale(1.01);
}

/* ===========================
   Dark Mode
   =========================== */
[data-theme="dark"] {
    --bg-primary: #131313;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(0, 0, 0, 0.3);

    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent: #4a9eed;
    --accent-hover: #3a8edb;

    --shadow-sm: none;
    --shadow-md: none;

    /* Modal */
    --modal-bg: rgba(30, 30, 30, 0.95);
    --modal-border: rgba(255, 255, 255, 0.02);
    --modal-shadow: 0px 4px 16px rgba(0, 0, 0, 0.4);
    --modal-interactive-bg: rgba(255, 255, 255, 0.06);
    --modal-interactive-hover: rgba(255, 255, 255, 0.1);
}

/* Dark board themes — solid dark tints */
[data-theme="dark"] .theme-gray { background: #222222; }
[data-theme="dark"] .theme-red { background: #2b1c19; }
[data-theme="dark"] .theme-blue { background: #182330; }
[data-theme="dark"] .theme-green { background: #19271b; }
[data-theme="dark"] .theme-orange { background: #2b2116; }
[data-theme="dark"] .theme-purple { background: #241d2d; }
[data-theme="dark"] .theme-coral { background: #2f1d19; }
[data-theme="dark"] .theme-teal { background: #172828; }

/* Dark theme color tokens — slightly brighter for contrast */
[data-theme="dark"] .theme-gray { --theme-color: #999; }
[data-theme="dark"] .theme-red { --theme-color: #e05545; }
[data-theme="dark"] .theme-blue { --theme-color: #4a9eed; }
[data-theme="dark"] .theme-green { --theme-color: #4cc45a; }
[data-theme="dark"] .theme-orange { --theme-color: #e88530; }
[data-theme="dark"] .theme-purple { --theme-color: #b888e0; }
[data-theme="dark"] .theme-coral { --theme-color: #ff8872; }
[data-theme="dark"] .theme-teal { --theme-color: #38c8c8; }

/* Dark scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #333; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #444; }

/* Dark card — no shadow, translucent fill */
[data-theme="dark"] .kanban-card { box-shadow: none; }

/* Dark card title border */
[data-theme="dark"] .card-title-input { border-bottom-color: rgba(255, 255, 255, 0.08); }

/* Dark column headers — title/count white, icon and + stay colored */
[data-theme="dark"] .column-header h2 { color: rgba(255, 255, 255, 0.85); }
[data-theme="dark"] .column-count { color: rgba(255, 255, 255, 0.4); }
[data-theme="dark"] .btn-more,
[data-theme="dark"] .btn-edit-column { color: rgba(255, 255, 255, 0.4); }

/* Dark modal backdrop cursor */
[data-theme="dark"] .modal-backdrop,
[data-theme="dark"] .card-modal-backdrop {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='white'%3E%3Cpath d='M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z'/%3E%3C/svg%3E") 12 12, pointer;
}

/* Dark input focus */
[data-theme="dark"] .modal-content input:focus {
    background: rgba(255, 255, 255, 0.08);
}


/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    opacity: 0.6;
    --target-opacity: 0.6;
    font-size: 20px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity var(--transition-normal);
}

.theme-toggle:hover {
    opacity: 1;
}

.theme-toggle i {
    font-size: 20px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea, [contenteditable="true"] {
    -webkit-user-select: auto;
    user-select: auto;
}

#app {
    height: 100%;
    overflow: hidden;
}

/* ===========================
   Views & Transitions
   =========================== */
.view {
    display: none;
    height: 100%;
    flex-direction: column;
}

.view.active {
    display: flex;
}

/* ===========================
   Initial Screen (Landing Page)
   =========================== */
.initial-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 24px;
    background: var(--bg-primary);
    overflow-y: auto;
    text-align: center;
}

.enter-1 { animation: fadeInUp 0.8s var(--bounce-bezier) 0.1s forwards; opacity: 0; }
.enter-2 { animation: fadeInUp 0.8s var(--bounce-bezier) 0.2s forwards; opacity: 0; }
.enter-3 { animation: fadeInUp 0.8s var(--bounce-bezier) 0.3s forwards; opacity: 0; }
.enter-4 { animation: fadeInUp 0.8s var(--bounce-bezier) 0.4s forwards; opacity: 0; }
.enter-5 { animation: fadeInUp 0.8s var(--bounce-bezier) 0.5s forwards; opacity: 0; }
.enter-6 { animation: fadeInUp 0.8s var(--bounce-bezier) 0.6s forwards; opacity: 0; }

.landing-header {
    display: none; /* Removed as per user request to move logo inline */
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 64px;
    width: 100%;
}

.logo-landing {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.8;
}

.logo-landing svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.policy-link {
    display: inline-block;
    margin-top: 80px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-normal);
    opacity: 0.8;
}

.policy-link:hover {
    color: var(--text-secondary);
}

.landing-nav {
    display: flex;
    gap: 24px;
}

.landing-nav a {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.landing-nav a:hover {
    color: var(--text-primary);
}

.hero-content.manifesto-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 600px;
    margin: 16px auto;
    text-align: left;
    font-family: var(--font-serif) !important;
}

.welcome-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.6; /* Slightly more muted as it was already 0.7 */
}

.manifesto-text {
    margin-bottom: 48px;
}

.manifesto-text p {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 32px;
    opacity: 0.8;
}

.manifesto-text p.emphasis {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0;
    opacity: 0.9; /* More emphasis, but still slightly mellowed */
}

.benefits-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 48px;
    width: 100%;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: transparent !important;
}

.benefit-item i {
    font-size: 32px;
    color: var(--theme-color);
    flex-shrink: 0;
}

.benefit-item span {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--text-primary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .benefit-item i {
        font-size: 24px;
    }
    .benefit-item span {
        font-size: 1.3rem;
    }
}

.main-action {
    display: flex;
    justify-content: center;
}

.btn-hero {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 16px 36px !important;
    border-radius: 50px !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(38, 123, 208, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    margin: 0 !important;
    transition: all 0.3s var(--bounce-bezier) !important;
    border: none !important;
}

.browser-warning {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(205, 57, 32, 0.05);
    border: 1px solid rgba(205, 57, 32, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.5;
    opacity: 0.8;
}

.browser-warning.hidden {
    display: none;
}

.browser-warning i {
    font-size: 24px;
    color: var(--danger);
    flex-shrink: 0;
}

.browser-warning strong {
    display: block;
    margin-top: 8px;
    color: var(--text-primary);
}

.btn-hero:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 123, 208, 0.3);
}

.theme-option.is-pro {
    position: relative;
}

.pro-modal-content {
    position: relative;
}

.pro-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.pro-icon-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pro-modal-content h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--modal-text);
    text-align: center;
    margin-bottom: 12px;
}

.pro-modal-content p {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 12px;
    background: var(--modal-interactive-bg) !important;
    border-radius: var(--radius-md);
    transition: transform 0.2s var(--bounce-bezier);
}


[data-theme="dark"] .feature-item {
    box-shadow: none;
}

.feature-item i {
    font-size: 40px;
    color: var(--theme-color);
}

.feature-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--modal-text);
    line-height: 1.4;
}

.pro-note {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-top: 24px !important;
    text-align: left !important;
}

.pro-modal-actions {
    margin-top: 24px;
    justify-content: center !important;
}

.theme-option.is-pro {
    position: relative;
}

.pro-lock {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 12px !important;
    color: var(--theme-color);
    padding: 0;
    pointer-events: none;
    opacity: 0.8;
}

.permission-prompt {
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.permission-prompt p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

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

/* Responsive Landing Page */
@media (max-width: 768px) {
    .initial-container {
        padding: 40px 20px;
    }
    .hero-logo h1 {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .manifesto-text p {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }
    .manifesto-text p.emphasis {
        font-size: 1.4rem;
    }
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    .showcase-column {
        gap: 40px;
    }
    .logo-row {
        justify-content: space-between;
        margin-bottom: 32px;
    }
    .logo-landing {
        position: relative;
        top: 0;
        left: 0;
        font-size: 1.4rem;
    }
    .logo-landing svg {
        width: 28px;
        height: 28px;
    }
    .mockup-left, .mockup-right {
        transform: none;
        max-width: 100%;
    }
}

/* ===========================
   Header
   =========================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: var(--bg-primary);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Stagger entrance animations for header elements */
@keyframes staggerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: var(--target-opacity, 1);
        transform: translateY(0);
    }
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
}

.history-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-history {
    background: transparent;
    border: none;
    color: var(--text-primary);
    opacity: 0.6;
    --target-opacity: 0.6;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    opacity: 0.6;
    --target-opacity: 0.6;
    font-size: 20px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition-normal);
}

.btn-icon:hover {
    opacity: 1;
}

.btn-history i {
    font-size: 20px;
}

.btn-history:hover:not(:disabled) {
    opacity: 1;
}

.btn-history:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.header-logo-container svg {
    width: 28px;
    height: 28px;
}

.workspace-name {
    color: var(--text-primary);
    opacity: 0.6;
    --target-opacity: 0.6;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    transition: opacity var(--transition-normal);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

.workspace-name:hover {
    opacity: 1;
}

.breadcrumb-sep {
    color: var(--text-primary);
    opacity: 0.4;
    --target-opacity: 0.4;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    user-select: none;
    margin: 0 2px;
}

.breadcrumb-link {
    color: var(--text-primary);
    opacity: 0.6;
    --target-opacity: 0.6;
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    transition: opacity var(--transition-normal);
    padding: 4px;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

.breadcrumb-link:hover {
    opacity: 1;
}

.breadcrumb-current {
    color: var(--text-primary);
    opacity: 1;
    --target-opacity: 1;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    padding: 4px;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    transition: opacity var(--transition-normal);
}

.workspace-name {
    max-width: 80px !important;
}

.breadcrumb-current:hover {
    opacity: 1;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.breadcrumb-project-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.view.active .breadcrumbs > *:nth-child(1) { animation-delay: 50ms; }
.view.active .breadcrumbs > *:nth-child(2) { animation-delay: 100ms; }
.view.active .breadcrumbs > *:nth-child(3) { animation-delay: 150ms; }
.view.active .breadcrumbs > *:nth-child(4) { animation-delay: 200ms; }
.view.active .breadcrumbs > *:nth-child(5) { animation-delay: 250ms; }
.view.active .breadcrumbs > *:nth-child(6) { animation-delay: 300ms; }

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-project, .breadcrumb-card {
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view.active .breadcrumbs > * {
    opacity: 0;
    animation: staggerFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.view.active .header-right > *:not(.btn-primary) {
    opacity: 0;
    animation: staggerFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.view.active .header-right > *:nth-child(1) { animation-delay: 200ms; }
.view.active .header-right > *:nth-child(2) { animation-delay: 250ms; }
.view.active .header-right > *:nth-child(3) { animation-delay: 300ms; }

/* Responsive Header */
@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }
    .header-left, .header-right {
        gap: 16px;
    }
    .header-logo-container span {
        display: none;
    }
    .workspace-name {
        max-width: 80px !important;
    }
    .breadcrumb-current {
        max-width: 160px;
    }
}

@media (max-width: 630px) {
    .header {
        padding: 10px 16px;
    }
    .header-left, .header-right {
        gap: 10px;
    }
    .header-right .btn-primary span,
    #current-phase-name,
    .breadcrumbs {
        display: none;
    }
    .btn-phase {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }
    .header-right .btn-primary {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .history-controls {
        display: none;
    }
    .view-toggle {
        margin: 0 4px;
    }
}

/* ===========================
   Phase Selector & View Toggle
   =========================== */
.phase-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-phase {
    background: var(--modal-interactive-bg);
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity var(--transition-normal);
}

.btn-phase:hover {
    opacity: 0.8;
}

#current-phase-name {
    min-width: 100px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--modal-border);
    box-shadow: var(--modal-shadow);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 160px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform-origin: top right;
    animation: dropdownIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    background: transparent;
    border: none;
    color: var(--modal-text);
    padding: 8px 12px;
    text-align: left;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dropdown-item .icon-check {
    opacity: 0;
    transition: opacity 0.2s;
}

.dropdown-item.selected .icon-check {
    opacity: 1;
}

.dropdown-item:hover {
    background: var(--modal-interactive-bg);
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 6px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.toggle-btn span {
    display: none;
}

.toggle-btn i {
    font-size: 20px;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    color: var(--text-primary);
}

.toggle-sep {
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    opacity: 0.5;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
    background: transparent;
    color: var(--accent);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-normal);
    font-family: var(--font-serif);
    margin: 0 -8px;
}

.btn-primary:hover {
    background: rgba(38, 123, 208, 0.05);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    opacity: 0.6;
    font-size: 20px;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-normal);
}

.btn-icon:hover {
    opacity: 1;
}

/* Standardization for all Remix Icons */
[class^="ri-"], [class*=" ri-"] {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-primary);
    opacity: 0.6;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: opacity var(--transition-normal);
}
.btn-back:hover {
    opacity: 1;
}

/* ===========================
   Kanban Board
   =========================== */
.kanban-container {
    flex: 1;
    padding: 8px 32px 32px;
    overflow-x: auto;
    overflow-y: hidden;
}

.kanban-container.is-dragging {
    user-select: none;
    cursor: all-scroll;
}



.kanban-board {
    display: flex;
    gap: 16px;
    height: 100%;
    /* Magic trick to center content if it fits, or left align if it overflows */
    width: max-content;
    margin: 0 auto;
}

.kanban-column {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: background 0.2s, box-shadow 0.2s;
}

/* Column Entrance Animation (only triggers on view change) */
.view-entering .kanban-column {
    opacity: 0;
    transform: translateY(15px);
    animation: columnEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes columnEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.column-header {
    display: flex;
    align-items: center;
    padding: 16px 20px 8px;
    gap: 6px;
}

.column-header .column-icon {
    font-size: 20px;
    color: var(--theme-color);
    cursor: grab;
}

.column-header h2 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--theme-color);
    margin-right: 2px;
    cursor: grab;
    padding-top: 2px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.column-count {
    color: var(--theme-color);
    font-size: 1.1rem;
    font-family: var(--font-serif);
    opacity: 0.5;
    padding: 3px 4px 0px;
}

.column-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 2px;
}

.btn-add-header, .btn-more, .btn-edit-column {
    background: transparent;
    border: none;
    color: var(--theme-color);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
}

.btn-add-header:hover, .btn-more:hover, .btn-edit-column:hover {
    opacity: 1;
}

.column-cards {
    flex: 1;
    padding: 8px 16px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===========================
   Cards
   =========================== */
.kanban-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
    overflow: hidden; /* For cover image border radius */
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevents card from squishing vertically */
    padding: 8px;
    gap: 8px;
}

.kanban-card .card-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px;
}

.kanban-card[data-type="project"] .card-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
}

.kanban-card .card-meta {
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0.6;
    margin-top: -20px;
    padding: 8px;
}

.kanban-card .project-cover-image {
    width: 100%;
    border-radius: 8px;
    max-height: 140px;
    object-fit: cover;
    transition: opacity 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-entering .kanban-card .project-cover-image {
    opacity: 0;
    transform: translateY(10px);
}

.kanban-card .project-cover-image.loaded {
    opacity: 1;
    transform: translateY(0);
}

.kanban-card .card-cover-image {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-entering .kanban-card .card-cover-image {
    opacity: 0;
    transform: translateY(10px);
}

.kanban-card .card-cover-image.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Dark mode adjustment for cover image */
[data-theme="dark"] .kanban-card .card-cover-image {
    opacity: 0.9;
}

/* ===========================
   Card Detail Modal
   =========================== */
.card-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 40px;
}

.card-modal.hidden {
    display: none;
}

.card-modal.leaving .card-modal-content {
    animation: modalOut 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.card-modal.leaving .card-modal-backdrop {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='%23666'%3E%3Cpath d='M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z'/%3E%3C/svg%3E") 12 12, pointer;
}

.card-modal-content {
    position: relative;
    background: var(--modal-bg);
    border: 1px solid var(--modal-border);
    box-shadow: var(--modal-shadow);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 28px;
    padding: 36px 40px;
    width: 700px;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    cursor: default;
    will-change: transform, opacity;
    animation: modalIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.card-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.card-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.card-meta-dropdowns {
    display: flex;
    gap: 12px;
}

.card-dropdown-wrapper {
    display: flex;
    flex-direction: column;
}

.card-modal-meta .phase-selector {
    position: relative;
    width: fit-content;
}

.card-modal .dropdown-menu {
    right: auto;
    left: 0;
}

.card-modal-meta .btn-phase {
    background: var(--modal-interactive-bg);
    font-size: 1rem;
    padding: 8px 16px;
    min-width: 120px;
    justify-content: space-between;
}

.card-updated-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 8px;
}

.card-updated-text span {
    color: var(--text-secondary);
    font-weight: 500;
    padding-left: 4px;
}

.card-modal-header .card-title-input {
    flex: 1;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--modal-text);
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.card-modal-header .card-title-input::placeholder {
    color: var(--text-muted);
}

.card-modal-header .btn-icon {
    /* No need for distinct color assignment since .btn-icon has var(--text-primary) */
    flex-shrink: 0;
}

.card-modal-header .btn-icon:hover {
    color: var(--danger);
    opacity: 1;
}

.card-modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

.card-modal-body .editor-container {
    height: 100%;
}

.card-modal-body .ql-container {
    border: none !important;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--modal-text);
}

.card-modal-body .ql-toolbar {
    border: none !important;
    border-bottom: 1px solid var(--modal-interactive-bg) !important;
    padding: 12px 0;
    background: #F5F5F5; /* Fully opaque for light mode */
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="dark"] .card-modal-body .ql-toolbar {
    background: #1E1E1E; /* Fully opaque for dark mode */
}

/* Fix Quill Icons and Text in Dark Mode */
[data-theme="dark"] .ql-snow .ql-stroke {
    stroke: var(--text-primary) !important;
    opacity: 0.8;
}

[data-theme="dark"] .ql-snow .ql-fill {
    fill: var(--text-primary) !important;
    opacity: 0.8;
}

[data-theme="dark"] .ql-snow .ql-picker {
    color: var(--text-primary) !important;
    opacity: 0.8;
}

[data-theme="dark"] .ql-snow .ql-picker-options {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--modal-border) !important;
}

/* Remove Quill's white border/shadows in standard themes */
.card-modal-body .ql-snow.ql-toolbar,
.card-modal-body .ql-snow .ql-toolbar {
    border: none !important;
}

.card-modal-body .ql-editor {
    padding: 8px 0;
    min-height: 250px;
}

.card-modal-footer {
    padding: 24px 0 0 0;
    background: transparent;
    border-top: 1px solid var(--modal-interactive-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    flex-shrink: 0;
}

.card-modal-footer .footer-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.card-modal-footer .footer-right {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Toggle Switch Styles */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background-color: var(--border-color);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    white-space: nowrap;
}

input:checked ~ .toggle-label {
    color: var(--text-primary);
}

[data-theme="dark"] .slider {
    background-color: #333;
}

[data-theme="dark"] input:checked + .slider {
    background-color: var(--accent);
}

.card-modal-footer .btn-primary {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border: none;
    border-radius: 100px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 !important;
    display: block;
}

.card-modal-footer .btn-primary:hover {
    opacity: 0.8;
}

.card-modal-footer .btn-secondary {
    background: var(--modal-interactive-bg);
    color: var(--modal-secondary-text);
    border: none;
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0 !important;
}

.card-modal-footer .btn-secondary:hover {
    opacity: 0.8;
}

.card-modal-body .ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: italic;
    left: 0;
    right: 0;
    line-height: inherit;
}

/* ===========================
   Modal
   =========================== */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px 0;
    overflow-y: auto;
    transition: visibility 0.2s;
}

.modal.leaving .modal-content {
    animation: modalOut 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal.leaving .modal-backdrop {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='%23666'%3E%3Cpath d='M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z'/%3E%3C/svg%3E") 12 12, pointer;
}

.modal-content {
    position: relative;
    background: var(--modal-bg);
    border: 1px solid var(--modal-border);
    box-shadow: var(--modal-shadow);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 400px;
    max-width: 90%;
    cursor: default;
    will-change: transform, opacity;
    animation: modalIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        max-width: 95%;
        padding: 20px;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.modal-content h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--modal-text);
    font-weight: 500;
    letter-spacing: -0.3px;
    margin: 0;
}

.modal-header .btn-icon {
    font-size: 24px;
    color: var(--text-muted);
}
.modal-header .btn-icon:hover {
    color: var(--danger);
}

.modal-field {
    margin-bottom: 20px;
}

.modal-field label {
    display: flex;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--modal-secondary-text);
    font-size: 0.9rem;
}

.modal-content input, .modal-content select {
    width: 100%;
    background: var(--modal-interactive-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    color: var(--modal-text);
    transition: all 0.2s;
}

.modal-content input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.6);
}

.modal-content input::placeholder {
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--modal-text);
}

.cover-image-uploader {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.btn-select-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    color: var(--modal-secondary-text);
    background: var(--modal-interactive-bg);
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-select-cover i {
    font-size: 20px !important;
}

.btn-select-cover:hover {
    background: var(--modal-interactive-hover);
    color: var(--modal-text);
}

.cover-image-preview-container {
    position: relative;
    width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--modal-border);
}

.cover-image-preview-container img {
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.btn-remove-cover {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px;
    border-radius: 50%;
}

.btn-remove-cover:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.modal-actions .btn-primary {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    border: none;
    border-radius: 100px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.modal-actions .btn-primary:hover {
    opacity: 0.8;
}

.modal-actions .btn-secondary {
    background: var(--modal-interactive-bg);
    color: var(--modal-secondary-text);
    border: none;
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    margin: 0 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.modal-actions .btn-secondary:hover {
    opacity: 0.8;
}

.theme-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.theme-option {
    height: 48px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--theme-color);
}

.theme-option.selected {
    border-color: var(--accent);
    transform: scale(1.05);
}

.icon-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background: var(--modal-interactive-bg);
    border-radius: var(--radius-md);
    border: none;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    color: var(--modal-secondary-text);
}

.icon-option i {
    font-size: 20px !important;
}

.icon-option:hover {
    background: var(--modal-interactive-hover);
    color: var(--modal-text);
}

.icon-option.selected {
    background: var(--accent);
    color: white;
}

/* ===========================
   Utilities & Misc
   =========================== */
.hidden { display: none !important; }

/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #ccc; }

.ql-toolbar.ql-snow {
    padding: 8px 0px !important;
}

.card-modal-body .ql-snow.ql-toolbar {
    margin-left: -8px !important;
}

/* Completed Board Effect Removed */

/* Completed Board Effect Removed */

.kanban-card.is-completed {
    transition: opacity 0.3s ease;
}

.completion-icon {
    display: inline-block;
    width: 0;
    opacity: 0;
    margin-right: 0;
    font-size: 16px;
    overflow: hidden;
    vertical-align: middle;
    transition: all var(--modal-transition);
}

.is-completed .completion-icon {
    width: 16px;
    opacity: 0.6;
    margin-right: 4px;
}

/* Dark Mode Overrides for Theme Labels */
[data-theme="dark"] .theme-option {
    opacity: 0.9;
}

/* Card Modal Responsiveness */
@media (max-width: 768px) {
    .card-modal {
        padding: 20px;
    }

    .card-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        padding: 28px 32px;
        border-radius: var(--radius-lg);
    }

    .card-modal-header .card-title-input {
        font-size: 1.6rem;
    }

    .card-modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .card-updated-text {
        padding-bottom: 0;
    }

    .card-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding-top: 20px;
    }

    .card-modal-footer .footer-left {
        justify-content: center;
    }

    .card-modal-footer .footer-right {
        gap: 8px;
    }

    .card-modal-footer .footer-right button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .card-modal {
        padding: 10px;
    }

    .card-modal-content {
        width: 95%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-lg);
        border: 1px solid var(--modal-border);
        padding: 20px;
    }

    .card-modal-header {
        margin-bottom: 16px;
    }

    .card-modal-header .card-title-input {
        font-size: 1.4rem;
    }

    .card-meta-dropdowns {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .card-dropdown-wrapper {
        width: 100%;
    }

    .card-modal-meta .phase-selector {
        width: 100%;
    }

    .card-modal-meta .btn-phase {
        width: 100%;
        min-width: unset;
    }

    .card-modal-body .ql-editor {
        min-height: 300px;
    }

    .card-modal-footer .footer-right {
        flex-direction: column;
        gap: 8px;
    }

    .card-modal-footer .footer-right button {
        width: 100%;
    }
}
