/**
 * Public styles for Eredda SBA
 */

.eredda-portal-container {
    margin: 20px 0;
}

.eredda-portal-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.eredda-portal-header h2 {
    margin-top: 0;
}

.eredda-portal-section {
    margin-bottom: 30px;
}

.eredda-portal-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.eredda-report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.eredda-report-table th,
.eredda-report-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.eredda-report-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.eredda-report-table tr:nth-child(even) {
    background-color: #fafafa;
}

.eredda-student-info {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.eredda-student-info p {
    margin: 5px 0;
}

.eredda-student-name {
    font-size: 18px;
    font-weight: 600;
}

.eredda-class-info {
    font-weight: 600;
}

.eredda-report-summary {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    margin: 20px 0;
}

.eredda-report-summary p {
    margin: 5px 0;
}

.eredda-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.eredda-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.eredda-login-form input[type="text"],
.eredda-login-form input[type="password"],
.eredda-login-form input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
}

.eredda-login-form input[type="submit"] {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.eredda-login-form input[type="submit"]:hover {
    background: #005f8b;
}

.eredda-login-links {
    margin-top: 15px;
    text-align: center;
}

.eredda-grade-a {
    background-color: #d4edda !important;
    color: #155724;
}

.eredda-grade-b {
    background-color: #e0f3ff !important;
    color: #004085;
}

.eredda-grade-c {
    background-color: #fff3cd !important;
    color: #856404;
}

.eredda-grade-d {
    background-color: #fff3e0 !important;
    color: #8a6d3b;
}

.eredda-grade-f {
    background-color: #f8d7da !important;
    color: #721c24;
}

.eredda-print-button {
    margin-top: 20px;
}

.eredda-report-actions {
    margin-top: 20px;
}

.eredda-report-actions button {
    margin-right: 10px;
}

/* ===== STUDENT PORTAL MODERN DESIGN ===== */

.eredda-student-portal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.eredda-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.eredda-school-logo img {
    height: 50px;
    width: auto;
}

.eredda-portal-title h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.eredda-portal-title h2 {
    margin: 5px 0 0 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.eredda-user-nav {
    position: relative;
}

.eredda-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.eredda-profile-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.eredda-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.eredda-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.eredda-user-nav:hover .eredda-user-dropdown {
    display: block;
}

.eredda-user-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.eredda-user-dropdown a:hover {
    background: #f8f9fa;
}

/* Welcome Section */
.eredda-welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.eredda-welcome-content h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 600;
}

.eredda-welcome-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.eredda-student-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.eredda-admission-number {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.eredda-class-info {
    color: #64748b;
    font-size: 0.9rem;
}

/* Analytics Section */
.eredda-analytics-section {
    margin-bottom: 30px;
}

.eredda-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.eredda-analytics-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.eredda-analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.eredda-analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.eredda-card-icon {
    margin-bottom: 15px;
}

.eredda-card-icon .dashicons {
    font-size: 2rem;
    width: 2rem;
    height: 2rem;
    color: #667eea;
}

.eredda-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1;
}

.eredda-card-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Tab Navigation */
.eredda-tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    /* Ensure smooth scrolling on all devices */
    scroll-behavior: smooth;
}

.eredda-tab-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #667eea;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-right: 10px;
}

.eredda-tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.eredda-tab-btn.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 600;
}

.eredda-tab-btn .dashicons {
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Tab Content */
.eredda-tab-content-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.eredda-tab-content {
    display: none;
    padding: 30px;
}

.eredda-tab-content.active {
    display: block;
}

.eredda-section-header {
    margin-bottom: 25px;
}

.eredda-section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 600;
}

/* Dashboard Grid */
.eredda-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.eredda-dashboard-widget {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.eredda-widget-header h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

/* Scores List */
.eredda-scores-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eredda-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.eredda-score-subject {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eredda-subject-name {
    font-weight: 600;
    color: #1e293b;
}

.eredda-exam-name {
    font-size: 0.85rem;
    color: #64748b;
}

.eredda-score-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eredda-score-number {
    font-weight: 700;
    color: #1e293b;
}

.eredda-score-grade {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.eredda-grade-a { background: #dcfce7; color: #166534; }
.eredda-grade-b { background: #dbeafe; color: #1e40af; }
.eredda-grade-c { background: #fef3c7; color: #92400e; }
.eredda-grade-d { background: #fed7aa; color: #ea580c; }
.eredda-grade-f { background: #fee2e2; color: #dc2626; }

/* Attendance Overview */
.eredda-attendance-overview {
    display: flex;
    align-items: center;
    gap: 20px;
}

.eredda-attendance-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.eredda-attendance-percentage {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#667eea calc(var(--percentage) * 3.6deg), #e2e8f0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.eredda-attendance-percentage::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.eredda-attendance-percentage span {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: #1e293b;
}

.eredda-attendance-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eredda-attendance-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eredda-stat-number {
    font-weight: 600;
    color: #1e293b;
}

.eredda-stat-label {
    font-size: 0.85rem;
    color: #64748b;
}

/* Component Scores */
.eredda-component-scores {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.eredda-component-subject {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.eredda-component-subject h3 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.2rem;
}

.eredda-component-exam {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.eredda-component-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.eredda-component-table th,
.eredda-component-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.eredda-component-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}

/* Events Grid */
.eredda-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.eredda-event-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    transition: all 0.2s ease;
}

.eredda-event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.eredda-event-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.eredda-event-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.eredda-event-month {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.eredda-event-content {
    flex: 1;
}

.eredda-event-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

.eredda-event-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.eredda-event-time,
.eredda-event-location,
.eredda-event-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
}

.eredda-event-description {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

/* Reports Grid */
.eredda-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.eredda-report-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.eredda-report-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.eredda-report-header h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.eredda-report-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.eredda-report-term,
.eredda-report-year {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.eredda-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.eredda-report-btn:hover {
    background: #5a67d8;
    color: white;
}

/* Teachers Grid */
.eredda-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.eredda-teacher-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    transition: all 0.2s ease;
}

.eredda-teacher-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.eredda-teacher-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eredda-teacher-avatar .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: white;
}

.eredda-teacher-info {
    flex: 1;
}

.eredda-teacher-name {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.eredda-teacher-subject {
    margin-bottom: 12px;
}

.eredda-subject-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.eredda-teacher-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.eredda-teacher-contact a {
    color: #667eea;
    text-decoration: none;
}

.eredda-teacher-contact a:hover {
    text-decoration: underline;
}

/* Exam Schedule Grid */
.eredda-exam-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.eredda-exam-schedule-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.eredda-exam-schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.eredda-exam-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.eredda-exam-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.eredda-exam-month {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eredda-exam-content {
    position: relative;
    z-index: 1;
}

.eredda-exam-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: white;
    line-height: 1.3;
}

.eredda-exam-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.eredda-exam-term,
.eredda-exam-location,
.eredda-exam-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.eredda-exam-description {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* No Data States */
.eredda-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.eredda-no-data p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eredda-portal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .eredda-welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .eredda-analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .eredda-tab-navigation {
        /* Disable wrapping for mobile - use horizontal scroll instead */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px;
    }
    
    .eredda-tab-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .eredda-tab-btn {
        flex-shrink: 0;
        padding: 8px 16px !important;
        font-size: 13px !important;
        white-space: nowrap;
        margin-right: 8px !important;
    }
    
    .eredda-tab-btn .dashicons {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
        margin-right: 6px !important;
    }
    
    .eredda-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .eredda-events-grid,
    .eredda-reports-grid,
    .eredda-teachers-grid,
    .eredda-exam-schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .eredda-event-card,
    .eredda-teacher-card {
        flex-direction: column;
        text-align: center;
    }
    
    .eredda-attendance-overview {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive */
@media screen and (max-width: 782px) {
    .eredda-report-table {
        display: block;
        overflow-x: auto;
    }
}

/* Profile Section Styles */
#profileSection {
    position: absolute;
    top: 80px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

#profileSection .eredda-section-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

#profileSection .eredda-section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

#profileSection .eredda-section-content {
    padding: 20px;
}

#profileSection .eredda-profile-info {
    margin-bottom: 20px;
}

#profileSection .eredda-profile-details h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
}

#profileSection .eredda-profile-details p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #666;
}

#profileSection .eredda-profile-details strong {
    color: #333;
    margin-right: 5px;
}

#profileSection .eredda-signature-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

#profileSection .eredda-signature-section h3 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #333;
}

#profileSection .eredda-form-group {
    margin-bottom: 15px;
}

#profileSection .eredda-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

#profileSection .eredda-form-group .description {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

#profileSection .eredda-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#profileSection .eredda-btn-primary {
    background: #667eea;
    color: white;
    border: none;
}

#profileSection .eredda-btn-primary:hover {
    background: #5a6fd6;
}

.eredda-profile-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.eredda-profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    #profileSection {
        position: fixed;
        top: 70px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}

/* Recent Activities Widget Styles */
.eredda-activities-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.eredda-widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.eredda-widget-title h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.2rem;
    color: #2c3338;
}

.eredda-widget-title .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #667eea;
}

.eredda-activity-count {
    font-size: 0.9rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
}

.eredda-activity-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.eredda-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eredda-filter-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.eredda-filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.eredda-filter-btn .filter-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.eredda-activities-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.eredda-activity-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}

.eredda-activity-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.eredda-activity-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6b7280;
}

.eredda-activity-type .dashicons {
    color: #667eea;
    margin-right: 4px;
}

.eredda-time-ago {
    font-size: 0.85rem;
    color: #9ca3af;
}

.eredda-activity-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.eredda-student-info {
    flex: 1;
}

.eredda-student-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.eredda-class-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #6b7280;
}

.eredda-score-info {
    text-align: right;
}

.eredda-subject, .eredda-exam {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 4px;
}

.eredda-score {
    margin-top: 8px;
}

.score-value {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.score-value.grade-a {
    background: #dcfce7;
    color: #166534;
}

.score-value.grade-b {
    background: #dbeafe;
    color: #1e40af;
}

.score-value.grade-c {
    background: #fef3c7;
    color: #92400e;
}

.score-value.grade-d {
    background: #fed7aa;
    color: #ea580c;
}

.score-value.grade-f {
    background: #fee2e2;
    color: #dc2626;
}

.eredda-attendance-info {
    margin-left: auto;
}

.attendance-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.attendance-status.status-present {
    background: #dcfce7;
    color: #166534;
}

.attendance-status.status-absent {
    background: #fee2e2;
    color: #dc2626;
}

.attendance-status.status-late {
    background: #fef3c7;
    color: #92400e;
}

.eredda-activities-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.eredda-view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.eredda-view-more-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.eredda-no-activities {
    text-align: center;
    padding: 40px 20px;
}

.eredda-no-activities-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.eredda-no-activities-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.eredda-no-activities h4 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 1.1rem;
}

.eredda-no-activities p {
    margin: 0 0 20px;
    color: #6b7280;
}

.eredda-quick-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.eredda-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.eredda-action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}

@media (max-width: 768px) {
    .eredda-activity-filters {
        flex-wrap: wrap;
    }
    
    .eredda-filter-btn {
        flex: 1;
        justify-content: center;
    }
    
    .eredda-activity-main {
        flex-direction: column;
        gap: 12px;
    }
    
    .eredda-score-info {
        text-align: left;
    }
    
    .eredda-subject, .eredda-exam {
        justify-content: flex-start;
    }
    
    .eredda-attendance-info {
        margin-left: 0;
    }
}

/* Access Control Styles */
.eredda-access-denied {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    margin: 20px 0;
}

.eredda-access-denied-content {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.eredda-access-denied-content .dashicons {
    font-size: 48px;
    color: #dc3232;
    margin-bottom: 20px;
}

.eredda-access-denied-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.eredda-access-denied-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.eredda-role-explanation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #0073aa;
}

.eredda-role-explanation p {
    margin-bottom: 10px;
}

.eredda-role-explanation strong {
    color: #0073aa;
}