 /* General body and font styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    padding: 2rem;
    margin: 0;
    line-height: 1.5;
}

/* Styling for the main board title */
.board-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    position: relative;   /* <---- this makes .top-menu anchor correctly */
}

#board-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    outline: none;
    cursor: text;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

#board-title:hover {
    background-color: #e5e7eb;
}

#board-title:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    background-color: #f9fafb;
}

/* Main container for the columns */
.kanban-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
}

/* Responsive behavior: desktop layout */
@media (min-width: 768px) {
    .kanban-container {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }
}

/* Kanban Column styling */
.column {
    flex: 1;
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    max-height: 80vh;
    overflow-y: auto;
}

/* Styling for the column title */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    cursor: grab; /* Indicate that the column header can be grabbed */
}

.column-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    outline: none;
}

.column-title:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Kanban Item styling */
.kanban-item {
    background-color: #f3f4f6;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: grab;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: grab; /* show grab cursor for draggable area */
}

.kanban-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: #e5e7eb;
}

/* The item content is now editable */
.kanban-item-content {
    flex-grow: 1;
    outline: none;
    cursor: text; /* normal cursor when hovering text */
}

.kanban-item-content:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Dragging state for items */
.kanban-item.is-dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Dragging state for columns */
.column.is-dragging {
    opacity: 0.5;
}

/* Updated placeholder for a dragged column - a vertical dashed blue line */
.column-placeholder {
    width: 4px; /* Thin line */
    height: 90%;
    align-self: center; /* Align it in the center vertically */
    background-color: transparent;
    border-left: 2px dashed #3b82f6; /* Dashed blue border on the left */
    border-radius: 0;
    margin: 0 1rem;
    transition: all 0.3s ease-in-out;
}

/* Delete button styling for columns */
.delete-column-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.delete-column-btn:hover {
    color: #ef4444;
}

/* Delete button styling for items */
.delete-item-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    margin-left: 0.5rem;
    line-height: 1;
}

.delete-item-btn:hover {
    color: #ef4444;
}

/* Floating add button and menu */
.add-btn-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

#add-btn {
    background-color: #22c55e;
    color: white;
    font-weight: bold;
    padding: 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

#add-btn:hover {
    background-color: #16a34a;
    transform: scale(1.1);
}

/* Add menu styling */
.add-menu {
    position: absolute;
    bottom: calc(100% + 1rem); /* Position above the button */
    right: 0;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}

.add-menu button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-menu button:hover {
    background-color: #e5e7eb;
}

/* SVG icon styling for menu buttons */
.add-menu button svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Confirmation modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.confirm-btn {
    background-color: #ef4444;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.confirm-btn:hover {
    background-color: #dc2626;
}

.cancel-btn {
    background-color: #e5e7eb;
    color: #1f2937;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.cancel-btn:hover {
    background-color: #d1d5db;
}

/* New item creation modal styles */
#create-item-modal .modal-content {
    text-align: left;
}
#create-item-modal input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    margin-bottom: 1rem;
}

/* Footer styles */
.footer {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: auto; /* Pushes the footer to the bottom */
}

.footer a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #2563eb;
    text-decoration: underline;
}
.kanban-item-content:empty:before {
  content: attr(data-placeholder);
  color: #aaa;
  pointer-events: none;
}
.column.empty::after {
  content: "Double click in the column or click the + button to create a new item";
  color: #bbb;
  font-style: italic;
  text-align: center;
  display: block;
  padding: 8px;
}

.board-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
}

.board-title-container h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}

/* Icon buttons */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover svg {
    stroke: #2563eb; /* blue highlight on hover */
}

/* Sandwich menu container */
.top-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0; 
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

/* Buttons inside the sandwich menu */
.top-menu button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hover effect same as add-menu */
.top-menu button:hover {
    background-color: #e5e7eb;
}

/* Icon sizing consistency */
.top-menu button svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Help button as text, with a circle */
#help-btn {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    padding: 0.25rem 0.5rem;

    border: 2px solid #000;   /* adds the circle outline */
    border-radius: 50%;       /* makes it round */
    width: 36px;              /* force circle dimensions */
    height: 36px;

    display: flex;            /* center the ? inside */
    align-items: center;
    justify-content: center;
    background: none;
    cursor: pointer;
}

#help-btn:hover {
    border-color: #2563eb; /* blue border on hover */
    color: #2563eb;        /* blue ? on hover */
}
.sandwich-btn-container {
    position: relative; /* anchor the menu to the button */
    display: inline-block;
}
