2/* Report Card Styles */
.report-card {
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Reset any default padding */
    overflow: hidden; /* Ensure content stays within borders */
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.category-badge {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Direct targeting with maximum specificity */
.row .col-md-6 .content-card.report-card > .content-card-header {
    padding: 1.75rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.row .col-md-6 .content-card.report-card > .content-card-body {
    padding: 1.75rem !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card.report-card .content-card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
    font-weight: 600;
    color: var(--bs-primary);
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 0.25rem 0;
}

.content-card.report-card .card-text {
    margin-bottom: 1.25rem !important;
    line-height: 1.5;
    flex-grow: 1;
    padding: 0.25rem 0;
}

.report-card .btn {
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-card .btn:last-child {
    margin-bottom: 0;
}

.report-card .btn i {
    margin-right: 8px;
}

.report-card .button-container {
    margin-top: 0.5rem;
}

/* Improved text alignment in report cards */
.report-card .card-subtitle {
    display: flex;
    align-items: center;
    line-height: 1.4;
    padding: 0.25rem 0;
    margin-bottom: 0.75rem;
}

.report-card .card-subtitle i {
    min-width: 20px;
    text-align: center;
    margin-right: 8px;
}

.report-card .badge {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    margin-bottom: 5px;
    padding: 0.4rem 0.6rem;
}

.report-card .badge i {
    margin-right: 4px;
}

/* Badge container spacing */
.report-card .badge-container {
    margin-bottom: 1.25rem;
    padding: 0.25rem 0;
}

/* Apply different border colors based on report type */
.report-card[data-type="Annual"] {
    border-left-color: #28a745;
}
.report-card[data-type="Financial"] {
    border-left-color: #fd7e14;
}
.report-card[data-type="Event"] {
    border-left-color: #17a2b8;
}
.report-card[data-type="Survey"] {
    border-left-color: #6f42c1;
}
.report-card[data-type="Term"] {
    border-left-color: #ffc107;
}
.report-card[data-type="Academic"] {
    border-left-color: #dc3545;
}
.report-card[data-type="Program"] {
    border-left-color: #20c997;
}

/* Add animation delay based on card index */
.animate-fadeIn {
    animation-delay: calc(0.1s * var(--card-index, 1));
}

/* Filter section styles */
.filter-section .content-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color, #eaeaea);
}

.filter-section .content-card-header {
    background-color: var(--card-header-bg, #f8f9fa);
    padding: 1rem 1.25rem;
}

.filter-section .content-card-body {
    padding: 1.25rem;
}

.filter-section .form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color, #ced4da);
    padding: 0.5rem 1rem;
    height: 42px;
}

.filter-section .btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

/* Report detail page styles */
.report-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.report-detail-header h2 {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.report-detail-table th {
    width: 150px;
    vertical-align: top;
}

.report-detail-table td {
    vertical-align: top;
    padding: 0.75rem;
}

.report-summary {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 0.375rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.report-summary p {
    margin-bottom: 0;
    line-height: 1.6;
}

.report-document-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.report-document-card .document-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.report-document-card .btn {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .col-md-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .report-card {
        height: auto;
    }
    
    .filter-section form {
        flex-direction: column;
    }
    
    .filter-section .flex-grow-1 {
        margin-bottom: 1rem;
        margin-right: 0 !important;
        width: 100%;
    }
    
    .report-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .report-detail-header h2 {
        margin-bottom: 1rem;
    }
}

/* Action buttons at the bottom */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.action-buttons .btn {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn i {
    margin-right: 0.5rem;
}

/* Details button styling */
.details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: #6c757d;
    transition: all 0.2s ease;
}

.details-btn:hover {
    color: #495057;
    text-decoration: none;
}

.details-btn i {
    margin-right: 0.5rem;
} 