/* ═══════════════════════════════════════════════════════════════════════════
   ENTERPRISE CORPORATE DESIGN - Using theme.css variables
   ═══════════════════════════════════════════════════════════════════════════ */

.project-card {
    background: var(--rz-base-background-color);
    border-radius: var(--rz-border-radius);
    padding: 1rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid var(--rz-base-200);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.project-card:hover {
    border-color: var(--rz-base-400);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.project-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.project-card.drag-over {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 2px var(--rz-primary-lighter);
}

.project-card[draggable="true"] {
    cursor: grab;
}

.project-card[draggable="true"]:active {
    cursor: grabbing;
}

.project-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--rz-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--rz-primary);
    color: var(--rz-on-primary);
}

.project-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--rz-border-radius);
    object-fit: cover;
}

.project-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rz-base-100);
}

.stat-item {
    text-align: center;
    padding: 0.35rem;
    background: var(--rz-base-50);
    border-radius: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rz-text-color);
}

.stat-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-bar {
    background: var(--rz-base-background-color);
    border-radius: var(--rz-border-radius);
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--rz-base-200);
}

/* Clean search input styling */
.filter-search-input,
.filter-bar .rz-textbox {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Compact dropdowns in filter bar */
.filter-bar .rz-dropdown {
    font-size: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--rz-base-background-color);
    border-radius: var(--rz-border-radius);
    border: 1px solid var(--rz-base-200);
}

.view-toggle {
    display: flex;
    background: var(--rz-base-100);
    border-radius: 6px;
    padding: 3px;
}

.view-toggle button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--rz-text-secondary-color);
    font-weight: 500;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.view-toggle button .rz-icon {
    font-size: 16px;
}

.view-toggle button.active {
    background: var(--rz-base-background-color);
    color: var(--rz-text-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.view-toggle button:hover:not(.active) {
    color: var(--rz-text-color);
}

/* Badge styles override */
.corp-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.corp-badge-active {
    background: var(--rz-success-lighter);
    color: var(--rz-success);
}

.corp-badge-archived {
    background: var(--rz-base-100);
    color: var(--rz-text-secondary-color);
}

/* Progress bar override */
.corp-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--rz-base-200);
    overflow: hidden;
}

.corp-progress-bar {
    height: 100%;
    background: var(--rz-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Search input */
.corp-search {
    background: var(--rz-base-50);
    border-radius: 6px;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--rz-base-200);
    transition: all 0.15s ease;
}

.corp-search:focus-within {
    border-color: var(--rz-primary);
    background: var(--rz-base-background-color);
    box-shadow: 0 0 0 3px var(--rz-primary-lighter);
}

/* Overdue styling */
.overdue-text {
    color: var(--rz-warning) !important;
    font-weight: 500;
}

/* Count badge */
.corp-badge-count {
    background: var(--rz-base-100);
    color: var(--rz-text-secondary-color);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* BOARDS VIEW - Accordion projects with mini-kanban                         */
/* ═══════════════════════════════════════════════════════════════════════════ */

.board-accordion-item {
    background: var(--rz-base-background-color);
    border: 1px solid var(--rz-base-200);
    border-radius: var(--rz-border-radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.board-accordion-header {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
    gap: 0.75rem;
    user-select: none;
}

.board-accordion-header:hover {
    background: var(--rz-base-50);
}

.board-accordion-header.expanded {
    border-bottom: 1px solid var(--rz-base-200);
}

.board-expand-icon {
    font-size: 18px !important;
    color: var(--rz-text-tertiary-color);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.board-expand-icon.expanded {
    transform: rotate(90deg);
}

.board-project-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    color: var(--rz-on-primary);
}

.board-project-icon img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.board-project-info {
    flex: 1;
    min-width: 0;
}

.board-project-name {
    font-weight: 600;
    color: var(--rz-text-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-project-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--rz-text-tertiary-color);
}

.board-project-code {
    font-family: monospace;
    background: var(--rz-base-100);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
}

.board-stats-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--rz-text-secondary-color);
    flex-shrink: 0;
}

.board-stat-inline {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.board-stat-inline .rz-icon {
    font-size: 14px;
    color: var(--rz-text-tertiary-color);
}

.board-content {
    padding: 1rem;
    background: var(--rz-base-50);
}

.mini-kanban {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.mini-kanban::-webkit-scrollbar {
    height: 6px;
}

.mini-kanban::-webkit-scrollbar-track {
    background: var(--rz-base-200);
    border-radius: 3px;
}

.mini-kanban::-webkit-scrollbar-thumb {
    background: var(--rz-base-400);
    border-radius: 3px;
}

.mini-col {
    flex: 0 0 220px;
    background: var(--rz-base-100);
    border-radius: var(--rz-border-radius);
    border: 1px solid var(--rz-base-200);
    max-height: 320px;
    display: flex;
    flex-direction: column;
}

.mini-col-header {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--rz-base-200);
    flex-shrink: 0;
}

.mini-col-dot {
    width: 3px;
    height: 14px;
    border-radius: 2px;
}

.mini-col-name {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--rz-text-secondary-color);
}

.mini-col-count {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--rz-text-tertiary-color);
    background: var(--rz-base-200);
    padding: 0.0625rem 0.3125rem;
    border-radius: 8px;
    margin-left: auto;
}

.mini-col-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.mini-task {
    background: var(--rz-base-background-color);
    border-radius: 4px;
    padding: 0.5rem;
    border: 1px solid var(--rz-base-200);
    cursor: pointer;
    transition: all 0.15s ease;
}

.mini-task:hover {
    border-color: var(--rz-primary-light);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.mini-task-head {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
}

.mini-task-type {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-task-title {
    font-size: 0.75rem;
    color: var(--rz-text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-task-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.375rem;
}

.mini-task-code {
    font-family: monospace;
    font-size: 0.625rem;
    color: var(--rz-text-tertiary-color);
}

.mini-task-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 600;
    color: white;
}

.mini-col-empty {
    text-align: center;
    padding: 1rem 0.5rem;
    color: var(--rz-text-tertiary-color);
    font-size: 0.6875rem;
}

.board-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--rz-text-tertiary-color);
}

.board-view-full {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--rz-primary);
    text-decoration: none;
    margin-top: 0.75rem;
}

.board-view-full:hover {
    text-decoration: underline;
}
