.card { margin-bottom: 20px; }
.filter-section { background: #f8f9fa; padding: 15px; margin-bottom: 20px; border-radius: 5px; }
.work-item-card { cursor: pointer; transition: all 0.3s; }
.work-item-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.chart-container { position: relative; height: 300px; }
.preset-badge { cursor: pointer; margin-right: 5px; margin-bottom: 5px; }
.export-dropdown { display: inline-block; margin-left: 10px; }
.filter-group { margin-bottom: 15px; }
.summary-card { margin-bottom: 15px; }
.my-3 { text-align: center; }

.sortable-header:hover {
    background-color: #f8f9fa;
}

th {
    position: relative;
}

.sort-indicator {
    position: absolute;
    right: 8px;
}

/* Loading indicators */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #333;
}

.loading-container {
    text-align: center;
}

/* Iteration styles */
.current-iteration {
    background-color: rgba(220, 255, 220, 0.3);
}

.iteration-indicator {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    background-color: #e9ecef;
}

    .iteration-indicator.current {
        background-color: #d4edda;
        color: #155724;
        font-weight: bold;
    }

/* Update table header styles */
#workItemsTable th {
    white-space: nowrap;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .filter-section .row > div {
        margin-bottom: 10px;
    }
    .chart-container {
        height: 250px;
    }
    .table-responsive {
        overflow-x: auto;
    }
    .preset-badge {
        margin-right: 3px;
        margin-bottom: 3px;
        font-size: 0.8rem;
    }
    #presetName {
        width: 150px !important;
    }
}

/* Type styling Colours */
.type-task {
    background-color: rgb(164, 136, 10);
}

.type-bug {
    background-color: rgb(204, 41, 61);
}

/* State styling Colours*/
.state-active {
    background-color: rgb(0, 122, 204);
}
.state-indev {
    background-color: #d4edda;
    color: #155724;
}
.state-devcompleted {
    background-color: rgb(32, 119, 82);
}
.state-inuat {
    background-color: rgb(255, 157, 0);
}
.state-ready-for-release {
    background-color: rgb(0, 100, 58);
}

/* Progress bar styles */
.progress {
    min-width: 80px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    font-size: 0.7rem;
    line-height: 20px;
    white-space: nowrap;
}

/* Number formatting */
td:nth-child(8), td:nth-child(9) {
    text-align: center;
    font-family: monospace;
}

/* Hover effects for progress bars */
.progress:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s ease;
}