/* ==========================================================
   ASHOKA INSTITUTE FEEDBACK SYSTEM - CUSTOM STYLES
   ========================================================== */

:root {
    --gform-purple: #673ab7;
    --gform-purple-dark: #512da8;
    --gform-purple-light: #ede7f6;
    --gform-bg: #f0ebf8;
    --gform-card-border: #dadce0;
    --gform-text-dark: #202124;
    --gform-text-muted: #70757a;
    --gform-accent: #e04500;
}

body.gform-body {
    background-color: var(--gform-bg);
    color: var(--gform-text-dark);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* Google Form Header Card */
.gform-header-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--gform-card-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(60,64,67, 0.12), 0 1px 2px rgba(60,64,67, 0.24);
}

.gform-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #673ab7 0%, #e04500 50%, #ff9800 100%);
}

.gform-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--gform-card-border);
    box-shadow: 0 1px 3px rgba(60,64,67, 0.08), 0 1px 2px rgba(60,64,67, 0.16);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.gform-card:hover {
    box-shadow: 0 2px 6px rgba(60,64,67, 0.15);
}

.gform-card.active-card {
    border-left: 5px solid var(--gform-purple);
}

.gform-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.gform-faculty-badge {
    background-color: #f1f3f4;
    color: #3c4043;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Rating Matrix / Grid */
.rating-scale-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 10px 16px;
    border: 1px solid #f0f0f0;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin: 0 6px;
}

.rating-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #5f6368;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 4px;
}

.rating-option input[type="radio"]:checked {
    border-color: var(--gform-purple);
    background-color: #ffffff;
}

.rating-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--gform-purple);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rating-option .rating-num {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3c4043;
}

.rating-option:hover input[type="radio"] {
    border-color: var(--gform-purple);
    background-color: rgba(103, 58, 183, 0.05);
}

/* Course Covered Radio Cards */
.coverage-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coverage-pill-label {
    cursor: pointer;
    margin-bottom: 0;
}

.coverage-pill-label input[type="radio"] {
    display: none;
}

.coverage-pill-text {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid #dadce0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.coverage-pill-label input[type="radio"]:checked + .coverage-pill-text {
    background-color: var(--gform-purple);
    color: #ffffff;
    border-color: var(--gform-purple);
    box-shadow: 0 2px 4px rgba(103, 58, 183, 0.3);
}

.coverage-pill-label:hover .coverage-pill-text {
    border-color: var(--gform-purple);
}

/* Admin Dashboard Specific Styles */
.admin-sidebar {
    background: #1e293b;
    min-height: 100vh;
    color: #cbd5e1;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #ffffff;
    background-color: #334155;
}

.admin-sidebar .nav-link.active {
    background-color: #4f46e5;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

.admin-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Table Enhancements */
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* Star Badges */
.star-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}
.star-rating-badge.rating-high { background-color: #dcfce7; color: #15803d; }
.star-rating-badge.rating-mid  { background-color: #fef9c3; color: #854d0e; }
.star-rating-badge.rating-low  { background-color: #fee2e2; color: #b91c1c; }

@media (max-width: 768px) {
    .rating-scale-group {
        padding: 8px 4px;
    }
    .rating-option {
        margin: 0 2px;
    }
}
