
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-gradient {
    background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 100%);
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1rem;
}
.required {
    color: #e11d48; /* Red color for asterisk */
    margin-left: 2px;
}
.form-group small {
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}
.form-group select:disabled + small {
    color: #9ca3af;  /* Lighter color when disabled */
}
.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
}
.message.error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.message.success {
    background-color: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.info-box, 
.info-box-blue, 
.success-box {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Logged in user box */
.success-box {
    background: #e8ffe8;
    border-left: 5px solid #3aa63a;
    font-weight: 600;
}

/* Course Information Box */
.info-box-blue {
    background: #eef3ff;
    border-left: 5px solid #3b6db3;
}

/* --------------------------------
   Rating Scale Heading + List
----------------------------------*/
.rating-title {
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #333;
}

.rating-scale {
    margin: 5px 0 15px 20px;
    padding: 0;
}

.rating-scale li {
    padding: 3px 0;
    font-size: 14px;
}

/* Fix question text spacing */
.question-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Fix rating circle alignment */
.rating-options {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.rating-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #3b6db3;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.info-box-blue strong {
    color: #1e4da5;
}
/* =========================
   Feedback Table Styling
========================= */

/* Container for table */
.table-responsive {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: white;
    padding: 1rem;
}

/* Table Base */
.table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    color: #374151;
}

/* Table Header */
.table thead {
    background: #4f46e5;
    color: #fff;
}

.table thead th {
    padding: 12px 15px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #4338ca;
}

/* Table Body */
.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.table tbody tr:hover {
    background: #e0e7ff;
}

/* Table Cells */
.table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
}

/* Avg Rating Styling */
.table td:last-child {
    font-weight: 600;
    color: black;
    text-align: center;
}

/* No records row */
.table tbody tr td.text-center {
    text-align: center;
    font-style: italic;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border-bottom: 2px solid #e5e7eb;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px dashed #d1d5db;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
    }

    .table td:last-child {
        text-align: right;
        color: black;
    }
}

/* Table Caption */
.table-caption {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e3a8a;
}

@media (min-width: 768px) {
    .container {
        margin: 2rem auto;
    }
}

/* Header */
.header {
    background: #4f46e5;
    color: white;
    padding: 1.5rem;
}

.header h1 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.header p {
    color: #c7d2fe;
    font-size: 0.875rem;
}

/* Messages */
.message {
    padding: 1rem;
    margin: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Progress Steps */
.progress-steps {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-item {
    display: flex;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    background: #e5e7eb;
    color: #6b7280;
}

.step-number.active {
    background: #4f46e5;
    color: white;
}

.step-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.step-label.active {
    color: #4f46e5;
}

.step-connector {
    width: 3rem;
    height: 2px;
    background: #d1d5db;
    margin: 0 0.5rem;
}

/* Form Content */
.form-content {
    padding: 1.5rem;
}

.step-1 h2,
.step-2 h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

.instruction {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-group select:focus {
    outline: none;
    ring: 2px;
    ring-color: #4f46e5;
    border-color: #4f46e5;
}

/* Questions and Ratings */
.questions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question-card {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.question-text {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
}

.rating-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.rating-number {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.rating-label input {
    position: absolute;
    opacity: 0;   /* Hide visually but keep it clickable */
    cursor: pointer;
}

.rating-label {
    position: relative;
}

.rating-label input:checked + .rating-circle {
    background: #4f46e5;
    border-color: #4338ca;
    color: white;
}

.rating-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s;
}

.rating-circle:hover {
    border-color: #4f46e5;
}

.rating-circle.selected {
    background: #4f46e5;
    border-color: #4338ca;
    color: white;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-primary:disabled {
    background: #9ca3af;
}

/* Legend */
.legend {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.legend-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.legend-color.poor {
    background: #f87171;
}

.legend-color.average {
    background: #fbbf24;
}

.legend-color.excellent {
    background: #10b981;
}
.header {
    background: #4f46e5;
    color: white;
    padding: 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.header-text h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.header-text p {
    color: #c7d2fe;
    font-size: 0.95rem;
    margin: 0;
}

.college-logo {
    width: 100px;          /* Adjust size as needed */
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .rating-options {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .rating-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-item {
        width: 100%;
        justify-content: center;
    }
    
    .step-connector {
        display: none;
    }
	
}
