/* boards.css - Board qalereyası (board.css-in üstünə yüklənir, ordan header/toast/modal stillərini götürür) */

body {
    overflow: auto;               /* board.css-də kətan üçün hidden idi */
    background: #f7f7fa;
}

.boards-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Iframe-də açılanda geri düyməsi mənasızdır — sidebar onsuz da yerindədir */
body.is-embed .back-btn {
    display: none;
}

/* ==================== Axtarış ==================== */
.boards-search {
    position: relative;
    display: flex;
    align-items: center;
}

.boards-search i {
    position: absolute;
    left: 11px;
    font-size: 12px;
    color: #9a9aa6;
    pointer-events: none;
}

.boards-search input {
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    padding: 7px 12px 7px 30px;
    font-size: 13px;
    width: 240px;
    background: #fff;
    color: #1a1a2e;
}

.boards-search input:focus {
    outline: none;
    border-color: #4262FF;
}

/* ==================== Tablar ==================== */
.boards-tabs {
    display: flex;
    gap: 4px;
    padding: 0 18px;
    background: #fff;
    border-bottom: 1px solid #e6e7eb;
}

.boards-tab {
    border: none;
    background: none;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #6b6b78;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.boards-tab:hover {
    color: #1a1a2e;
}

.boards-tab.active {
    color: #4262FF;
    border-bottom-color: #4262FF;
}

/* ==================== Şəbəkə ==================== */
.boards-main {
    padding: 22px;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 18px;
}

/* ==================== Şirkət tabı: 1-ci səviyyə ==================== */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 14px;
}

.company-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e6e7eb;
    border-radius: 12px;
    padding: 15px 16px;
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.company-card:hover {
    border-color: #c9d0ff;
    box-shadow: 0 8px 22px rgba(30, 35, 90, 0.10);
    transform: translateY(-2px);
}

.company-card-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef1ff;
    color: #4262FF;
    font-size: 15px;
}

.company-card-main {
    min-width: 0;
}

.company-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-card-kind {
    font-size: 12px;
    color: #8a8a94;
    margin-top: 2px;
}

/* ==================== Şirkət tabı: 2-ci səviyyə ==================== */
.boards-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.crumb-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 4px 6px;
    border-radius: 7px;
    font-size: 13px;
    color: #6a6a78;
    cursor: pointer;
}

.crumb-back:hover {
    background: #f0f0f4;
    color: #1a1a2e;
}

.crumb-sep {
    color: #c4c4cc;
}

.crumb-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

.crumb-new {
    margin-left: auto;
}

.board-card {
    position: relative;
    background: #fff;
    border: 1px solid #e6e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.board-card:hover {
    border-color: #c9d0ff;
    box-shadow: 0 8px 22px rgba(30, 35, 90, 0.10);
    transform: translateY(-2px);
}

.card-thumb {
    height: 132px;
    background: #f2f2f6 repeating-linear-gradient(45deg, #f7f7fa 0 10px, #f2f2f6 10px 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eeeef2;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-thumb .thumb-empty {
    font-size: 30px;
    color: #c2c2cf;
}

.card-body {
    padding: 11px 12px 13px;
}

.card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 24px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 11.5px;
    color: #8a8a94;
}

.card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c9c9d4;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: #4262FF;
    background: #eef1ff;
    border-radius: 5px;
    padding: 2px 6px;
}

.card-menu-btn {
    position: absolute;
    right: 8px;
    bottom: 10px;
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    border-radius: 6px;
    color: #8a8a94;
    cursor: pointer;
    font-size: 13px;
}

.card-menu-btn:hover {
    background: #f0f0f5;
    color: #1a1a2e;
}

/* ==================== Kart menyusu ==================== */
.card-menu {
    position: fixed;
    z-index: 60;
    min-width: 178px;
    background: #fff;
    border: 1px solid #e0e0e6;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(20, 20, 50, 0.16);
    padding: 5px;
}

.card-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    border: none;
    background: none;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 13px;
    color: #33333f;
    cursor: pointer;
    text-align: left;
}

.card-menu button:hover {
    background: #f4f4f8;
}

.card-menu button i {
    width: 14px;
    text-align: center;
    color: #7a7a88;
}

.card-menu button.danger,
.card-menu button.danger i {
    color: #d43b3b;
}

.card-menu button.danger:hover {
    background: #fdeeee;
}

.card-menu-sep {
    height: 1px;
    background: #eeeef2;
    margin: 4px 2px;
}

/* ==================== Vəziyyətlər ==================== */
.boards-state {
    padding: 70px 20px;
    text-align: center;
    color: #8a8a94;
    font-size: 14px;
}

.boards-state i {
    display: block;
    font-size: 40px;
    margin-bottom: 14px;
    color: #ccccd8;
}

.boards-state .state-action {
    margin-top: 16px;
}

.skeleton-card {
    height: 200px;
    border-radius: 12px;
    background: linear-gradient(100deg, #eeeef3 30%, #f6f6fa 50%, #eeeef3 70%);
    background-size: 220% 100%;
    animation: boardsSkeleton 1.1s ease-in-out infinite;
}

@keyframes boardsSkeleton {
    from { background-position: 140% 0; }
    to   { background-position: -40% 0; }
}

/* ==================== Səhifələmə ==================== */
.boards-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 26px 0 6px;
}

.pager-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e6;
    background: #fff;
    border-radius: 8px;
    color: #444;
    cursor: pointer;
}

.pager-btn:hover:not(:disabled) {
    background: #f5f5f8;
}

.pager-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.pager-info {
    font-size: 12.5px;
    color: #6b6b78;
}

/* ==================== Dialoq ==================== */
.prompt-modal {
    width: 420px;
    max-width: 92vw;
}

.prompt-body {
    padding: 16px 18px 4px;
}

.prompt-text {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #4a4a58;
    line-height: 1.5;
}

.prompt-body input {
    width: 100%;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 14px;
    color: #1a1a2e;
}

.prompt-body input:focus {
    outline: none;
    border-color: #4262FF;
}

.prompt-body input.hidden {
    display: none !important;
}

.prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 18px 18px;
}

.hdr-btn.danger {
    background: #d43b3b;
    border-color: #d43b3b;
    color: #fff;
}

.hdr-btn.danger:hover {
    background: #c02f2f;
}
