/* ===============================
   INSTRUCTOR SPECIFIC STYLES
   =============================== */

/* Profile Image Fix */
.profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile img {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Custom alignment for Instructor Course Cards */
.instructor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 260px;
}

.instructor-card .course-title {
    margin-top: 10px;
    margin-bottom: auto;
    font-size: 20px;
    text-align: center;
}

.instructor-card .course-btn {
    margin-top: 20px;
}

/* ===============================
   EVALUATION PAGE STYLES
   =============================== */
.evaluation-container {
    max-width: 800px;
    margin-top: 20px;
}

.selection-controls {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-label {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.styled-select, .styled-input {
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #d1d5df;
    background: #e2e7f3;
    font-size: 15px;
    min-width: 250px;
    outline: none;
    cursor: pointer;
    transition: 0.2s;
}

.styled-select:focus, .styled-input:focus {
    border-color: #3e66ff;
}

.feedback-section {
    background: #f1f8ee; 
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.feedback-title {
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feedback-subtitle {
    color: #555;
    margin-bottom: 25px;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse; 
    gap: 5px;
    font-size: 50px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ccc; 
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #FFD700; 
}

.star-rating input:checked ~ label {
    color: #FFD700; 
}

.rating-result {
    margin-top: 15px;
    font-weight: bold;
    color: #475f7a;
    height: 20px;
}

.publish-btn {
    margin-top: 30px;
    padding: 12px 40px;
    background: #3e66ff;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.publish-btn:hover {
    background: #2b4acc;
}

.publish-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===============================
   INSIGHTS PAGE STYLES
   =============================== */
.charts-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.chart-card.full-width {
    background: #eef2f6; 
    width: 100%;
}

.chart-card h3 {
    text-align: center;
    color: #1a1a1a;
    font-size: 18px;
    margin-bottom: 25px;
}

.css-bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding-top: 20px;
    border-bottom: 2px solid #e0e0e0;
    border-left: 2px solid #e0e0e0;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 10px;
    width: 40px;
}

.bar {
    width: 100%;
    background: #4caf50;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.5s ease;
}

.bar-val {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.bar-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.donut-chart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 200px;
}

.donut-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#4caf50 0% 60%, #ffc107 60% 85%, #f44336 85% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-hole {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #444;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #444;
}

.rating-row span:first-child {
    width: 60px;
    text-align: right;
}

.rating-row span:last-child {
    width: 40px;
}

.progress-bar-bg {
    flex: 1;
    height: 12px;
    background: #dcdcdc;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* ===============================
   NOTIFICATIONS PAGE STYLES (MERGED)
   =============================== */
.main h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a45b8;
    margin-bottom: 30px;
}

.notification-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    max-width: 900px;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.form-field.full {
    width: 100%;
}

.form-field label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.form-field select,
.form-field input[type="date"],
.form-field textarea {
    padding: 14px 20px;
    border-radius: 15px;
    border: 1px solid #d1d5df;
    background: #e2e7f3;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: 0.2s;
}

.form-field select:focus,
.form-field input[type="date"]:focus,
.form-field textarea:focus {
    border-color: #3e66ff;
}

.form-field textarea {
    min-height: 180px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-buttons .publish-btn {
    margin-top: 0; 
}

.cancel-btn {
    padding: 12px 40px;
    border-radius: 30px;
    background: #edf2f7;
    border: none;
    color: #4a5568;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.cancel-btn:hover {
    background: #e2e8f0;
    color: #1a202c;
}

/* ===============================
   ADD PARTICIPANTS STYLES (MERGED)
   =============================== */
.course-select-box {
    background: white;
    padding: 24px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.2s;
}

.course-select-box:hover {
    border-color: #3e66ff;
}

.course-info { text-align: left; }
.course-info b { font-size: 14px; color: #3e66ff; text-transform: uppercase; letter-spacing: 0.5px; }
.course-info p { font-size: 18px; font-weight: 600; margin-top: 4px; color: #2d3748; }

.student-input {
    width: 100%;
    max-width: 700px;
    padding: 18px 24px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    margin-bottom: 30px;
}

.student-input:focus {
    border-color: #3e66ff;
}

.participant-buttons { display: flex; gap: 15px; }

.add-btn {
    padding: 14px 35px;
    border-radius: 30px; 
    background: #3e66ff;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.add-btn:hover {
    background: #2b52e0;
}