* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

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

.navbar {
    height: 64px;
    padding: 0 32px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.container {
    padding: 32px;
}

.hero {
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.hero p {
    color: #6b7280;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn.full {
    width: 100%;
}

.full {
    width: 100%;
}

.small-btn {
    padding: 6px 10px;
    background: #d0cfcf;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.board {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 16px;
}

.column {
    width: 280px;
    min-width: 280px;
    background: #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.column-title {
    margin: 0;
    font-size: 16px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 12px;
}

.task {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.task.completed {
    color: #6b7280;
}

.add-column {
    border: 2px dashed #9ca3af;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 360px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.auth-card h2 {
    margin-top: 0;
}

.auth-card label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
}

.auth-card input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.auth-card button {
    margin-top: 16px;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.success {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.error-text {
    color: #dc2626 !important;
    font-size: 13px;
}

.link-button {
    border: none;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    font-size: 15px;
}

.add-column-box input,
.auth-card textarea,
.modal input,
.modal textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
}

.modal textarea,
.auth-card textarea {
    resize: vertical;
}

.task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.task-drag-handle {
    width: 14px;
    flex: 0 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    color: #9ca3af;
    cursor: grab;
}

.task-drag-handle:active {
    cursor: grabbing;
}

.task-drag-handle i {
    font-size: 12px;
    line-height: 1;
}

.task > form {
    display: flex;
    flex: 0 0 20px;
    align-items: center;
    margin: 0;
}

.check-btn {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 4px;
    border: 1px solid #9ca3af;
    background: white;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.task-open {
    min-width: 0;
    flex: 1;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font: inherit;
}

.task-open:hover .task-title {
    color: #2563eb;
}

.task.completed .check-btn {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.check-btn .fa-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

.task-title {
    font-weight: 600;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.task.completed .task-title {
    text-decoration: line-through;
    color: #6b7280;
}

.task-ghost {
    opacity: 0.45;
    background: #eff6ff;
}

.task-chosen {
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.add-column-box form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-task-trigger {
    margin-top: 12px;
}

.icon-action {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #374151;
    cursor: pointer;
    padding: 0;
}

.icon-action:hover {
    background: #f3f4f6;
}

.icon-action.danger {
    color: #dc2626;
}

.icon-action.danger:hover {
    background: #fee2e2;
}

.icon-action i {
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    width: min(440px, 100%);
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.modal-actions form {
    margin-right: auto;
}

.modal-actions button {
    min-width: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1;
    font-family: inherit;
    font-size: 13px;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 6px;
    background: #fee2e2;
    color: #991b1b;
    cursor: pointer;
}
