/*  Main Title Section */

.main-title {
    display: flex;
    justify-content: space-between;
}

.board-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.board-options {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

/* Toolbar Section */

.main-toolbar {
    display: flex;
    justify-content: space-between;
}

.main-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Board Layout */

.main-board {
    height: 100%;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.board-category {
    width: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    border-radius: 6px;
    background-color: var(--board-bg);
    padding: 4px;
}

/* Board Category Header */

.category-title {
    display: flex;
    gap: 8px;
    padding: 12px;
}

/* Task List */

.board-tasks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 2px;
}

/* Task Card */

.task-card {
    background: none;
    border: none;
    padding: 0;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 8px;
    padding: 8px;
    background-color: var(--card-bg);
    border-radius: 6px;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}

.task-card:hover {
    box-shadow: var(--shadow-hover);
}

.task-name {
    text-align: left;
    font-size: 16px;
}

.task-info {
    display: flex;
    justify-content: space-between;
}

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

/* Avatar Section */

.avatar {
    width: 24px;
    height: 24px;
    overflow: hidden;
    border: 1px solid var(--avatar-border);
    border-radius: 50%;
    cursor: pointer;
}

.people-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--avatar-more-bg);
    color: var(--avatar-more-text);
    border-radius: 50%;
    padding: 4px;
    font-size: 10px;
    z-index: 0;
    margin-left: -6px;
    cursor: pointer;
}

.avatar:not(:first-child) {
    margin-left: -6px;
}

/* Search Input Inside Task */

.search-task-icon {
    position: relative;
    width: 16px;
    height: 16px;
    top: 3px;
    right: 28px;
}

.search-task {
    height: 32px;
    width: 120px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

/* Dropdown Button */

.btn-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 4px;
}

/* Utility Background */

.bg-gray {
    background-color: var(--gray-bg);
    border-radius: 2px;
    padding: 4px 12px;
    margin: 0 -1px;
}

.smaller {
    width: 12px;
    height: 12px;
}

/* Task Meta Information */

.task-id {
    font-size: 12px;
    font-weight: 600;
    color: var(--task-id-color);
}

.task-status-icon {
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Status Colors */

.red {
    background-color: var(--status-red);
}

.green {
    background-color: var(--status-green);
}

.blue {
    background-color: var(--status-blue);
}

/* Task Type Labels */

.task-type {
    font-size: 12px;
    font-weight: 600;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.feedback {
    background-color: var(--feedback-bg);
    color: var(--feedback-text);
}

.billing {
    background-color: var(--billing-bg);
}

.accounts {
    background-color: var(--accounts-bg);
}

.forms {
    background-color: var(--forms-bg);
}

/* Priority Indicator */

.task-priority {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: var(--gray-bg);
    color: black;
    border-radius: 50%;
}

.flagged {
    background-color: var(--flagged-bg);
}

/* Responsiveness */

@media (max-width: 1024px) {
    .main-board {
        flex-wrap: wrap;
    }

    .board-category {
        flex: 0 0 48%;
        /* two columns */
    }
}

@media (max-width: 768px) {
    .main-board {
        flex-wrap: wrap;
    }

    .board-category {
        flex: 1 1 100%;
    }
}