.text-edit {
    margin-left: 8px;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.text-edit:focus {
    outline: none;
    text-decoration: underline;
}

.text-edit:hover {
    text-decoration: underline;
}

/* Ensuring button looks like a link */
.btn-edit.text-edit {
    background: none;
    border: none;
    padding: 4px 8px;
    margin-left: 8px;
    color: #6c757d;
    font-size: 0.9em;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.btn-edit.text-edit:focus, .btn-edit.text-edit:hover {
    outline: none;
    text-decoration: none;
}

.btn-edit.text-edit:focus:not(:hover) {
    text-decoration: none;
}

/* Canvas specific styles */
.lc-container {
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 2rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-width: 1400px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding-bottom: 2rem;
    margin-bottom: 0.5rem;
    overflow: visible;
}

@media (max-width: 1440px) {
    .lc-container {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

.lc-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    width: 100%;
}

.lc-canvas {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: auto auto auto;
    gap: 8px;
    border: none;
    width: 1200px;
    height: auto;
    margin: 0;
}

/* Adjust for mobile view */
@media (max-width: 768px) {
    .lc-canvas {
        width: 1200px;
        height: 800px;
        transform: scale(0.8);
        transform-origin: top left;
        margin: 0;
        margin-right: -240px;
        margin-bottom: 0;
    }

    .lc-container {
        padding: 1rem;
        height: calc(800px * 0.8 + 2rem);
        margin: 0 auto;
        max-width: calc(100vw - 4rem);
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }

    .lc-scroll-wrapper {
        margin: 0;
        padding: 0;
        height: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
}

.lc-cell {
    border: none;
    border-radius: 12px;
    padding: 16px;
    overflow: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.lc-cell:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Updated color palette with more subtle colors */
.lc-col-1 { background-color: #F5F9FA; }
.lc-col-2 { background-color: #EDF7F7; }
.lc-col-3 { background-color: #E5F3F2; }
.lc-col-4 { background-color: #DDEEED; }
.lc-col-5 { background-color: #D5E9E8; }
.lc-col-6 { background-color: #CDE4E3; }
.lc-col-7 { background-color: #C5DFDE; }
.lc-col-8 { background-color: #BDDAD9; }
.lc-col-9 { background-color: #B5D5D4; }
.lc-col-10 { background-color: #ADD0CF; }

.lc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.lc-heading {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    margin: 0;
    letter-spacing: 0.5px;
}

.lc-problem { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.lc-solution { grid-column: 3 / span 2; grid-row: 1; }
.lc-key-metrics { grid-column: 3 / span 2; grid-row: 2; }
.lc-value-propositions { grid-column: 5 / span 2; grid-row: 1 / span 2; }
.lc-unfair-advantage { grid-column: 7 / span 2; grid-row: 1; }
.lc-channels { grid-column: 7 / span 2; grid-row: 2; }
.lc-customer-segments { grid-column: 9 / span 2; grid-row: 1 / span 2; }
.lc-cost-structure { grid-column: 1 / span 5; grid-row: 3; }
.lc-revenue-streams { grid-column: 6 / span 5; grid-row: 3; }

.lc-cell ul, .lc-cell ol {
    padding-left: 1.2em;
    margin: 0.5em 0;
    list-style-position: outside;
    list-style-type: disc;
}

.lc-cell li {
    margin-bottom: 0.5em;
    line-height: 1.4;
    display: list-item;
}

/* Content styling */
.cell-content {
    font-size: 0.95em;
    line-height: 1.5;
    color: #495057;
    height: auto;
    overflow: visible;
}

.cell-content p {
    margin-bottom: 0.8em;
}

/* Add scrollbar styling */
.lc-cell::-webkit-scrollbar {
    width: 8px;
}

.lc-cell::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.lc-cell::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.lc-cell::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Add minimum width to prevent too much squishing */
@media (max-width: 1200px) {
    .lc-canvas {
        min-width: 1000px;
    }
}

/* Only make it responsive on larger screens */
@media (min-width: 1400px) {
    .lc-canvas {
        width: 100%;
    }
}