
/* Report section styling */
.report-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.report-card-body {
    padding: 1rem;
}

.report-table {
    width: 100%;
    margin-bottom: 0;
}

.report-table th, .report-table td {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.report-table th {
    font-weight: 600;
    color: #495057;
}

/* Issue status badges */
.issue-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.issue-badge-new {
    background-color: #0d6efd;
    color: white;
}

.issue-badge-in-progress {
    background-color: #fd7e14;
    color: white;
}

.issue-badge-resolved {
    background-color: #198754;
    color: white;
}

.issue-badge-cancelled {
    background-color: #dc3545;
    color: white;
}

/* Toggle switch for hiding resolved items */
.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin-right: 0.5rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #0d6efd;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Voting buttons */
.vote-buttons {
    display: flex;
    align-items: center;
}

.vote-count {
    margin: 0 0.5rem;
    font-weight: 600;
}

.vote-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #6c757d;
    transition: color 0.2s;
}

.vote-button:hover {
    color: #0d6efd;
}

.vote-button.voted {
    color: #0d6efd;
}


/* Filter selector styling */
.filter-selector-container {
    display: flex;
    justify-content: end;
}

.filter-selector {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 2rem;
    padding: 0.25rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-option {
    position: relative;
    z-index: 1;
}

.filter-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-label {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2rem;
    margin: 0;
    text-align: center;
}

.filter-input:checked + .filter-label {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-input:focus + .filter-label {
    outline: none;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .issues-sidebar {
        flex: 0 0 100%;
    }

    .issues-main {
        flex: 0 0 100%;
    }

    /* Adjust filter selector on mobile */
    .filter-selector {
        width: 100%;
        justify-content: space-between;
    }

    .filter-label {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Improve issue cards on mobile */
    .issue-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .issue-card-header small {
        margin-top: 0.5rem;
    }
}
