.icon-hover:hover {
    transform: scale(1.1);
}

/* Enhanced table styling */
.table {
    width: 100%;
    margin-bottom: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
}

/* Center the table content */
.d-flex.justify-content-center > .w-100 {
    padding: 0 1rem;
}

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.table th i {
    font-size: 1rem;
    opacity: 0.9;
}

.table td {
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Specific column widths for better layout */
.table th:nth-child(1), .table td:nth-child(1) { width: 8%; } /* Department */
.table th:nth-child(2), .table td:nth-child(2) { width: 20%; } /* Title - increased */
.table th:nth-child(3), .table td:nth-child(3) { width: 12%; } /* Vendor */
.table th:nth-child(4), .table td:nth-child(4) { width: 10%; } /* Budget */
.table th:nth-child(5), .table td:nth-child(5) { width: 8%; } /* Manager */
.table th:nth-child(6), .table td:nth-child(6) { width: 10%; } /* PO Status */
.table th:nth-child(7), .table td:nth-child(7) { width: 8%; } /* Start */
.table th:nth-child(8), .table td:nth-child(8) { width: 8%; } /* End */
.table th:nth-child(9), .table td:nth-child(9) { width: 8%; } /* Status */
.table th:nth-child(10), .table td:nth-child(10) { width: 8%; } /* Payment */
.table th:nth-child(11), .table td:nth-child(11) { width: 8%; } /* Category */
.table th:nth-child(12), .table td:nth-child(12) { width: 6%; } /* Details */
.table th:nth-child(13), .table td:nth-child(13) { width: 7%; } /* Actions */

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.btn-group .btn {
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Status badge enhancements */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Card shadow enhancement */
.card {
    border: none;
    border-radius: 0.75rem;
}

/* Responsive table improvements */
@media (max-width: 1200px) {
    .table th, .table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .table th:nth-child(2), .table td:nth-child(2) { width: 18%; } /* Title narrower on medium screens */
    .table th:nth-child(6), .table td:nth-child(6) { width: 8%; } /* PO Status narrower */
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .table th, .table td {
        padding: 0.25rem;
        font-size: 0.75rem;
    }

    .table th:nth-child(1), .table td:nth-child(1) { width: 10%; } /* Department wider on mobile */
    .table th:nth-child(2), .table td:nth-child(2) { width: 25%; } /* Title wider on mobile for readability */
    .table th:nth-child(13), .table td:nth-child(13) { width: 12%; } /* Actions wider on mobile */

    .btn-group {
        flex-direction: column;
        gap: 2px;
    }

    .btn-group .btn {
        margin-right: 0;
        width: 100%;
        padding: 0.25rem;
    }
}

.project-detail-item strong {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #495057;
    margin-bottom: 0.35rem;
}

.project-overview-card {
    border: 1px solid rgba(0,0,0,0.05);
}

.latest-comment {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1rem;
}

.latest-comment .avatar {
    width: 42px;
    height: 42px;
    font-weight: 600;
}

.status-detail {
    min-height: 96px;
}

.timeline {
    border-left: 3px solid rgba(13, 110, 253, 0.18);
    padding-left: 1rem;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.timeline-item p {
    margin-bottom: 0.75rem;
}

.timeline-item .btn-outline-danger {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
}

