﻿.card-image {
    width: 65%;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0,0,0,.2);
}

.student-grid .card {
    padding: 0;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
}

.student-grid .card.active-card {
    border: 2px solid #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

.student-grid .card:hover,
.event-card-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.card-space {
    margin-top: .25em;
}

.student-grid .card-title {
    font-weight: 600;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.2;
    color: #333;
}

.student-grid .card-body {
    padding: 0.35rem 0.25rem !important;
    background: #fff;
}

.student-card-img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    display: block;
}

.student-grid .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.4em;
}

.student-grid .badge i {
    font-size: 0.7rem;
}

a.nostyle:link {
    text-decoration: inherit;
    color: inherit;
    cursor: pointer;
}

a.nostyle:visited {
    text-decoration: inherit;
    color: inherit;
    cursor: pointer;
}

.dt-input {
    margin: 5px !important;
}

.intake-select {
    font-size: 1.75rem;
    text-align: center;
    border: 0;
    padding: 5px;
}

/* Grid layout - Mobile First Approach */
.student-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

/* Small tablets (576px and up) */
@media (min-width: 576px) {
    .student-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .student-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

/* Small desktops (992px and up) */
@media (min-width: 992px) {
    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Extra large desktops (1400px and up) */
@media (min-width: 1400px) {
    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Ultra wide screens (1600px and up) */
@media (min-width: 1600px) {
    .student-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Module Feedback Styles */
.module-feedback-header {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin-bottom: 1.5rem;
}

.module-feedback-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.module-feedback-header h5 {
    color: #666;
    margin: 0.5rem 0 0 0;
}

.module-feedback-chart {
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin-bottom: 1.5rem;
}

.module-accordion .accordion-button {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background-color: #fff;
}

.module-accordion .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.module-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.module-accordion .accordion-body {
    background-color: #fff;
    padding: 1.5rem;
}

.response-table {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.response-table .question {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.response-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.response-stat {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.response-stat.strongly-agree { color: #2ecc71; }
.response-stat.agree { color: #f1c40f; }
.response-stat.disagree { color: #e67e22; }
.response-stat.strongly-disagree { color: #e74c3c; }

.comments-section {
    margin-top: 1.5rem;
}

.comment-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.comment-author {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-text {
    color: #666;
    line-height: 1.5;
}

.missing-responses {
    color: #e74c3c;
    font-weight: normal;
    margin-left: 0.5rem;
}

/* Rating Styles */
.number-rating {
    position: relative;
    padding: 1rem 0.5rem;
    min-width: 200px;
}

.rating-labels {
    position: relative;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.rating-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.rating-button-wrapper {
    text-align: center;
}

.rating-button-wrapper input[type="radio"] {
    display: none;
}

.rating-button-wrapper label {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    border-radius: 0.25rem;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Basic state */
.rating-button-wrapper label {
    background-color: transparent;
    color: inherit;
}

/* Hover state */
.rating-button-wrapper.hover label {
    background-color: #0d6efd;
    color: white;
    opacity: 0.8;
}

/* Active/Selected state */
.rating-button-wrapper.active label {
    background-color: #0d6efd;
/* Active state highlighting */
.rating-button-wrapper.active label,
.rating-button-wrapper.active ~ .rating-button-wrapper label {
    background-color: transparent;
    color: inherit;
}

.rating-button-wrapper.active label,
.rating-button-wrapper:has(.active) ~ .rating-button-wrapper label {
    background-color: #0d6efd;
    color: white;
}

/* Hover effect for sequential highlighting */
.rating-button-wrapper:hover label,
.rating-button-wrapper:has(:hover) ~ .rating-button-wrapper label {
    background-color: transparent !important;
    color: inherit !important;
}

.rating-button-wrapper:hover label,
.rating-button-wrapper:hover ~ .rating-button-wrapper:not(:hover) label {
    background-color: #0d6efd !important;
    color: white !important;
    opacity: 0.8;
}

.star-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stars {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.star-btn {
    padding: 0.25rem;
    transition: transform 0.15s ease;
}

.star-btn:hover {
    transform: scale(1.1);
}

.star-btn.active .fa-star {
    color: #ffc107 !important;
}

/* Feedback Comparison Matrix */
.rating-green  { background-color: rgba(25, 135, 84, 0.12) !important; }
.rating-amber  { background-color: rgba(255, 193, 7, 0.15) !important; }
.rating-red    { background-color: rgba(220, 53, 69, 0.12) !important; }

.comparison-cell:hover { filter: brightness(0.95); transition: filter 0.15s ease; }
.comparison-cell .stars { letter-spacing: -2px; font-size: 0.85rem; }

#comparisonTable th, #comparisonTable td { vertical-align: middle; white-space: nowrap; }
#comparisonTable .sticky-col {
    position: sticky; left: 0; background-color: #fff;
    z-index: 1; min-width: 200px; white-space: normal;
}
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
