/* Kanban Board Styling */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.kanban-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.kanban-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    min-height: 500px;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 150px);
}

.column-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.done-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    background: linear-gradient(135deg, #d4a5b8 0%, #a87a8a 100%) !important;
}

.done-header:hover {
    background: linear-gradient(135deg, #c495a8 0%, #986a7a 100%) !important;
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.column-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.done-column {
    width: 100%;
    max-height: none;
}

.done-column.collapsed .done-content {
    display: none;
}

.done-column.collapsed {
    max-height: fit-content;
}

.done-column.collapsed .done-header {
    border-radius: 8px;
}

.done-column:not(.collapsed) {
    max-height: calc(100vh - 300px);
}

.kanban-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    cursor: default;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    word-wrap: break-word;
}

.kanban-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.kanban-card.completed {
    opacity: 0.7;
    background: #e8f5e9;
}

.kanban-card.completed .card-text {
    text-decoration: line-through;
    color: #666;
}

.card-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ff6b9d;
    font-weight: bold;
}

.card-text {
    flex: 1;
    line-height: 1.5;
    color: #333;
}

/* Markdown styling within cards */
.card-text p {
    margin: 0 0 0.5em 0;
}

.card-text p:last-child {
    margin-bottom: 0;
}

.card-text a {
    color: #ff6b9d;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.card-text a:hover {
    border-bottom-color: #ff6b9d;
}

.card-text code {
    background: #e9ecef;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.card-text pre {
    background: #e9ecef;
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0.5em 0;
}

.card-text pre code {
    background: none;
    padding: 0;
}

.card-text strong {
    font-weight: 600;
}

.card-text em {
    font-style: italic;
}

.card-text ul,
.card-text ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
    list-style: none;
}

.card-text li {
    margin: 0.25em 0;
}

.empty-column {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.error-message {
    background: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.error-message p {
    margin: 10px 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kanban-row {
        flex-direction: column;
    }

    .kanban-column {
        min-width: 100%;
        max-height: none;
    }

    .done-column {
        max-height: none !important;
    }

    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
.column-content::-webkit-scrollbar {
    width: 8px;
}

.column-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.column-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.column-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

