.progress-box .text-blue,
.progress-box .text-muted {
    font-size: 14px;
}

/* Project Outline Styles */
.project-outline {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EAEAEA;
    padding: 24px;
}

/* Navigation Header */
.outline-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #09579B;
    border-radius: 20px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0C4A80;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: #1976D2;
}

.nav-current {
    padding: 8px 10px;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.current-date-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Gantt View */
.gantt-container {
    display: flex;
    gap: 0;
}

.gantt-wrapper {
    display: flex;
    width: 100%;
}

/* Fixed Info Table (Right Side) */
.gantt-info-wrapper {
    overflow-x: auto;
}
.gantt-info-table {
    border-collapse: separate;
    border-spacing: 0;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    height: 100%;
}

.gantt-info-table th,
.gantt-info-table td {
    border: 1px solid transparent;
    border-top: 0;
    border-left: 0;
    padding: 12px 15px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.gantt-info-table th {
    border-color: #0f5897;
}

.gantt-info-table td {
    border-color: #e9ecef;
}

.gantt-info-table th:first-child {
    border-right: 0;
}

.gantt-info-table thead {
    background: #0C4A80;
    color: #fff;
}

.gantt-info-table thead th {
    font-size: 13px;
    font-weight: 500;
    /*min-width: 100px;*/
}

.gantt-info-table tbody td {
    background: #fff;
    font-weight: 400;
    font-size: 14px;
    color: #606060;
    border: 1px solid #e9ecef;
    border-top: 0;
    border-left: 0;
}

.gantt-info-table tbody td:first-of-type {
    border-right: 0;
}

.gantt-info-table tbody tr:last-of-type td {
    border-bottom: 0;
}

/*.gantt-info-table tbody tr:nth-child(even) td {*/
/*    background: #f8f9fa;*/
/*}*/

.gantt-info-table tbody tr.main-step-row td {
    background: #e8f4fc;
    font-weight: 600;
    color: #0C4A80;
    text-align: start;
    font-size: 14px;

}

/* Days Table (Left Side - Scrollable) */
.gantt-days-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    flex: 1;
    margin-right: 15px;
    position: relative;
}

.gantt-days-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: max-content;
    border-radius: 8px;
    overflow: hidden;
}

.gantt-days-table th,
.gantt-days-table td {
    border: 1px solid transparent;
    border-right: 0;
    border-bottom: 0;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    min-width: 45px;
    height: 50px;
}

.gantt-days-table th {
    border-top: 0;
    border-color: #0f5897;
}

.gantt-days-table td {
    border-color: #e9ecef;
}

.gantt-days-table thead {
    background: #0C4A80;
    color: #fff;
}

.gantt-days-table thead th {
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
}

.gantt-days-table tbody td {
    background: #F8F8F8;
    position: relative;
}

.gantt-days-table tbody tr:nth-child(even) td {
    background: #F8F8F8;
}

.gantt-days-table tbody tr.main-step-row td {
    background: #e8f4fc;
}

/* .gantt-days-table tbody td.has-task {
    background: #FFFFFF !important;
} */

/* Legacy support - keep old classes working */
.gantt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.gantt-table th,
.gantt-table td {
    border: 1px solid #e9ecef;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

.gantt-header {
    background: #0C4A80;
    color: #fff;
}

.gantt-header th {
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    min-width: 45px;
}

.gantt-header th.fixed-col {
    min-width: 120px;
    position: sticky;
    z-index: 10;
    background: #0C4A80;
}

.gantt-header th.fixed-col:nth-child(1) {
    right: 0;
}

.gantt-header th.fixed-col:nth-child(2) {
    right: 120px;
}

.gantt-header th.fixed-col:nth-child(3) {
    right: 240px;
}

.gantt-header th.fixed-col:nth-child(4) {
    right: 360px;
}

.gantt-header th.fixed-col:nth-child(5) {
    right: 480px;
}

.gantt-row td {
    height: 50px;
    position: relative;
}

.gantt-row td.fixed-col {
    position: sticky;
    z-index: 5;
    background: #fff;
    font-size: 13px;
    padding: 8px;
    text-align: center;
}

.gantt-row td.fixed-col:nth-child(1) {
    right: 0;
}

.gantt-row td.fixed-col:nth-child(2) {
    right: 120px;
}

.gantt-row td.fixed-col:nth-child(3) {
    right: 240px;
}

.gantt-row td.fixed-col:nth-child(4) {
    right: 360px;
}

.gantt-row td.fixed-col:nth-child(5) {
    right: 480px;
}

.gantt-row:nth-child(even) td {
    background: #f8f9fa;
}

.gantt-row:nth-child(even) td.fixed-col {
    background: #f8f9fa;
}

/* Main Step Row */
.gantt-row.main-step-row td {
    background: #e8f4fc;
    font-weight: 600;
    color: #0C4A80;
}

.gantt-row.main-step-row td.fixed-col {
    background: #e8f4fc;
}

.date-cell {
    background: linear-gradient(to bottom, #e3f2fd 0%, #bbdefb 100%);
}

.date-cell.has-task {
    position: relative;
}

.task-badge,
.activity-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    display: block;
    margin: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Dropdown styles */
.cell-items-wrapper {
    position: relative;
}

.badge-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.items-dropdown {
    position: fixed;
    min-width: 200px;
    max-width: 300px;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(17, 38, 146, 0.1);
    padding: 8px 0;
    z-index: 10000;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

/* Scrollbar styling */
.items-dropdown::-webkit-scrollbar {
    width: 6px;
}

.items-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.items-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.items-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox scrollbar */
.items-dropdown {
    scrollbar-color: #cbd5e1 #f1f5f9;
    scrollbar-width: thin;
}

.items-dropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.items-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #0f172a;
    cursor: pointer;
}

.items-dropdown .dropdown-item i {
    color: #0085ff;
    font-size: 13px;
    flex-shrink: 0;
}

.items-dropdown .dropdown-item .item-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.items-dropdown .dropdown-item + .dropdown-item {
    border-top: 1px solid #f1f5f9;
}

.items-dropdown .dropdown-item.completed .item-label {
    color: #0f9d58;
}

.items-dropdown .dropdown-item.active .item-label {
    color: #fbbc04;
}

.items-dropdown .dropdown-item.stumbling .item-label {
    color: #ea4335;
}

.items-dropdown .dropdown-item.new .item-label {
    color: #1d4ed8;
}

/* Calendar Grid View */
.calendar-container {
    padding: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    direction: rtl;
}

.calendar-header-cell {
    background: #0C4A80;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #0f5897;
}

.calendar-day {
    min-height: 120px;
    min-width: 120px;
    border: 1px solid #e9ecef;
    border-right: 0;
    border-bottom: 0;
    padding: 10px;
    background: #fff;
    position: relative;
}

.calendar-day.is-today {
    background: #0f57973f;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day .day-number {
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    text-align: end;
    font-size: 21px;
}

.calendar-day.other-month .day-number {
    color: #adb5bd;
}

.calendar-day .day-items ,
.weekly-grid .weekly-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Weekly View */
.weekly-container {
    padding: 0;
}

.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    direction: rtl;
}

.weekly-column {
    border: 1px solid #e9ecef;
    min-height: 400px;
    border-right: 0;
    border-top: 0;
}

.weekly-column:last-of-type {
    border-left: 0;
}

.weekly-header {
    background: #0C4A80;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.weekly-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    background: #F8F8F8;
}

.weekly-content.has-task {
    background: #FFFFFF;
}

/* List View */
.list-container {
    padding: 0;
}

.list-day-group {
    margin-bottom: 0;
}

.list-day-header {
    background: #0C4A80;
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
}

.list-day-content {
    background: #fff;
    border-right: 1px solid #e9ecef;
    border-left: 1px solid #e9ecef;
}

.list-day-group:first-of-type .list-day-header {
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}


.list-day-group:last-of-type .list-day-content {
    border-bottom: 1px solid #e9ecef;
}

.list-item-row {
    display: flex;
    gap: 6px;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f5;
    flex-direction: column;
    width: fit-content;
}

.list-item-row:last-child {
    border-bottom: none;
}

.list-item {
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    display: block;
    font-weight: 600;
    width: fit-content;
    text-align: center;
}

.task-badge {
    background: linear-gradient(0deg, rgba(0, 133, 255, 0.1), rgba(0, 133, 255, 0.1));
    color: #0085FF;
    width: fit-content;
}

.activity-badge {
    color: #FF9F2D;
    background: linear-gradient(0deg, rgba(255, 150, 27, 0.1), rgba(255, 150, 27, 0.1));
    width: fit-content;
}

/* Daily View */
.daily-container {
    padding: 0;
}

.daily-header {
    background: #0C4A80;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid #e9ecef;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

.daily-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 300px;
    border: 1px solid #e9ecef;
    border-top: 0;
}

.daily-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.daily-item .item-time {
    font-size: 12px;
    color: #6c757d;
}

.daily-item .item-title {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
}

.daily-item .item-title.task {
    background: #e3f2fd;
    color: #1565C0;
    border-right: 3px solid #0C4A80;
}

.daily-item .item-title.activity {
    background: #fff3e0;
    color: #e65100;
    border-right: 3px solid #FF9800;
}

/* Progress bar for Gantt */
.gantt-bar {
    position: absolute;
    height: 20px;
    background: linear-gradient(90deg, #0C4A80, #64B5F6);
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.gantt-bar.activity-bar {
    background: linear-gradient(90deg, #FF9800, #FFB74D);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.empty-state p {
    font-size: 16px;
}

/* View Container */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* Scrollbar styling */
.gantt-container::-webkit-scrollbar {
    height: 8px;
}

.gantt-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gantt-container::-webkit-scrollbar-thumb {
    background: #0C4A80;
    border-radius: 4px;
}

.gantt-container::-webkit-scrollbar-thumb:hover {
    background: #1976D2;
}

/* Responsive tweaks */
@media (max-width: 1200px) {
    .gantt-info-table th,
    .gantt-info-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .gantt-days-table th,
    .gantt-days-table td {
        min-width: 40px;
    }
}

@media (max-width: 992px) {
    .project-outline {
        padding: 20px 18px;
        border-radius: 28px;
    }

    .outline-navigation {
        gap: 12px;
    }

    .nav-controls {
        justify-content: space-between;
    }

    .current-date-display {
        font-size: 16px;
    }

    .gantt-wrapper {
        flex-direction: column-reverse;
        gap: 14px;
    }

    .gantt-days-wrapper {
        margin: 0;
    }

    .gantt-info-table,
    .gantt-days-table {
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .project-outline {
        padding: 16px 12px;
        border-radius: 24px;
    }

    .outline-tabs {
        padding: 10px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .outline-tabs::-webkit-scrollbar {
        display: none;
    }

    .outline-tabs .tab-item {
        font-size: 13px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .nav-controls {
        gap: 12px;
    }

    .nav-current {
        flex-basis: 100%;
        text-align: center;
    }

    .calendar-grid {
        overflow-x: auto;
    }

    .weekly-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weekly-column {
        min-height: 240px;
    }

    .list-item-row {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .project-outline {
        padding: 14px 10px;
        border-radius: 20px;
    }

    .outline-tabs {
        gap: 6px;
    }

    .outline-navigation {
        gap: 16px;
        flex-direction: column;
    }

    .nav-controls {
        justify-content: center;
        gap: 12px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-current {
        font-size: 13px;
    }

    .gantt-info-table th,
    .gantt-info-table td {
        font-size: 12px;
        padding: 9px;
    }

    .gantt-days-table th,
    .gantt-days-table td {
        min-width: 34px;
        height: 42px;
    }

    .calendar-header-cell {
        display: none;
    }

    .calendar-day {
        min-height: 110px;
    }

    .weekly-grid {
        grid-template-columns: 1fr;
    }

    .weekly-header {
        font-size: 13px;
        padding: 12px;
    }

    .weekly-content {
        padding: 12px;
    }

    .list-day-header {
        font-size: 13px;
        padding: 12px 16px;
    }

    .list-day-content {
        border-left: none;
        border-right: none;
    }

    .list-item-row {
        padding: 12px 16px;
    }

    .daily-header {
        font-size: 14px;
        padding: 16px;
        border-top-right-radius: 14px;
        border-top-left-radius: 14px;
    }

    .daily-content {
        padding: 16px;
    }
}
