/* MudDrawer overlay styling */
.mud-overlay-drawer {
    background-color: rgba(0, 0, 0, 0.42) !important;
    z-index: calc(var(--z-footer) - 2) !important;
}

.mud-drawer.project-drawer {
    background-color: #2b0a3d !important;
    z-index: calc(var(--z-footer) - 1) !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: none !important;
    width: 85vw !important;
    max-width: 400px !important;
    padding-top: env(safe-area-inset-top);
    padding-bottom: var(--footer-base-height);
    border-right: none !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3) !important;
}

.mud-drawer.project-drawer .mud-drawer-content {
    background-color: #2b0a3d !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-right: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.mud-drawer.project-drawer .mud-drawer-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.project-drawer-header {
    background-color: #2b0a3d;
    border-bottom: 1px solid rgba(var(--color-orange), 0.3);
    padding: 12px 16px;
    flex-shrink: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.project-drawer-header-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.header-icon {
    color: var(--color-orange) !important;
    font-size: 1.4rem !important;
}

.project-drawer-title {
    color: var(--color-orange) !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    line-height: 1;
    font-size: 0.95rem !important;
    text-align: left;
}

.company-chip {
    background-color: rgba(255, 140, 61, 0.15) !important;
    color: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(255, 140, 61, 0.4) !important;
    font-weight: 600 !important;
    max-width: 60%;
}

.company-chip .mud-chip-content {
    color: rgba(255,255,255,0.95) !important;
}

.new-project-button {
    background-color: rgba(40, 199, 111, 0.14) !important;
    color: var(--color-green) !important;
    border: 2px solid rgba(40, 199, 111, 0.65) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding: 12px 16px !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.2s ease !important;
}

.new-project-button:hover {
    background-color: rgba(40, 199, 111, 0.24) !important;
    border-color: rgba(40, 199, 111, 0.82) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-1px) !important;
}

.new-project-button:active {
    transform: translateY(0) !important;
    background-color: rgba(40, 199, 111, 0.18) !important;
    box-shadow: var(--shadow-sm) !important;
}

.new-project-button .mud-button-label {
    color: var(--color-green) !important;
}

.project-drawer-company {
    color: rgba(235, 235, 235, 0.72) !important;
    font-size: 0.78rem !important;
}

.project-drawer-body {
    padding: 10px 14px 14px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-drawer-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.project-section-label {
    color: rgba(255,255,255,0.82) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 6px 4px 8px 4px;
}

.project-section-label-active {
    color: rgba(255, 140, 61, 1) !important;
}

.project-section-label-completed {
    color: rgba(210, 216, 228, 0.92) !important;
}

.project-section-divider {
    margin: 14px 4px !important;
    border-color: rgba(255, 140, 61, 0.3) !important;
}

.project-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card {
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid rgba(255,255,255,0.15);
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color var(--anim-fast) ease, border-color var(--anim-fast) ease, box-shadow var(--anim-fast) ease;
}

/* Active (ongoing) projects — orange left accent */
.project-card-active-style {
    border-left-color: rgba(255, 140, 61, 0.7) !important;
}

.project-card-active-style:hover {
    background-color: rgba(255,255,255,0.10);
    border-left-color: var(--color-orange) !important;
    box-shadow: var(--shadow-sm);
}

/* Completed projects — grey left accent */
.project-card-completed {
    border-left-color: rgba(148, 163, 184, 0.45) !important;
    opacity: 0.82;
}

.project-card-completed:hover {
    background-color: rgba(255,255,255,0.08);
    border-left-color: rgba(148, 163, 184, 0.7) !important;
    opacity: 1;
}

/* Selected state */
.project-card-selected {
    background-color: rgba(255,255,255,0.12) !important;
    box-shadow: var(--shadow-md) !important;
}

.project-card-active-style.project-card-selected {
    border-left-color: var(--color-orange) !important;
    border-color: rgba(255, 140, 61, 0.3) !important;
}

.project-card-completed.project-card-selected {
    border-left-color: rgba(148, 163, 184, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    opacity: 1;
}

.project-card:active {
    transform: scale(0.99);
}

/* Header row: title + arrow indicator */
.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.project-card-title {
    font-weight: 700 !important;
    color: white !important;
    font-size: 0.92rem !important;
    line-height: 1.25;
    margin: 0 !important;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-selected-icon {
    color: var(--color-orange) !important;
    font-size: 0.75rem !important;
    flex-shrink: 0;
}

.project-card-completed .project-card-selected-icon {
    color: rgba(148, 163, 184, 0.9) !important;
}

.project-card-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.project-card-meta-icon {
    color: rgba(255,255,255,0.60) !important;
}

.project-card-customer-text {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
}

.project-card-description {
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 0.74rem !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    margin-top: 2px;
}


