.subject-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.subject-card:hover {
    transform: translateY(-5px);
}

.subject-image-container {
    width: 80px;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.subject-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.subject-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
    line-height: 1.3;
}

.brand-text {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

.stats-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tabs-container {
    margin-bottom: 20px;
}

.tab-active {
    border-bottom: 3px solid #007bff;
    color: #007bff;
    font-weight: bold;
}

.tab-button {
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    margin-right: 30px;
    display: inline-block;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #007bff;
    text-decoration: none;
}

.filter-select {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.stats-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
}

.rank-text {
    color: #6c757d;
    font-size: 0.9rem;
}

.progress-title {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.guest-message {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #1976d2;
    margin-bottom: 20px;
}

.stats-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
}

.stats-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.stats-value {
    font-weight: 600;
    color: #333;
}

.score-badge {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.history-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.history-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.history-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.score-badge {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.score-badge-low {
    background-color: #fff3e0;
    color: #f57c00;
}

.score-badge-medium {
    background-color: #e3f2fd;
    color: #1976d2;
}

.history-details {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.correct-count {
    color: #2e7d32;
}

.wrong-count {
    color: #d32f2f;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.pagination {
    justify-content: center;
    margin-top: 30px;
}

.brand-text {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
}

.brand-text:hover {
    color: white;
    text-decoration: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.sub-category-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.sub-category-header h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.8rem;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.exam-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.exam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.exam-number {
    flex-shrink: 0;
    text-align: center;
}

.exam-badge {
    background: #22c55e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: inline-block;
}

.exam-number-display {
    font-size: 2.3rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1;
}

.exam-content {
    flex: 1;
    min-width: 0;
}

.exam-status {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.exam-title {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.exam-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6b7280;
    font-size: 0.8rem;
}

.exam-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.exam-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    color: white;
    text-decoration: none;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    color: white;
    text-decoration: none;
}

.score-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.empty-message {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 1.1rem;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

@media (max-width: 768px) {
    .exam-grid {
        grid-template-columns: 1fr;
    }

    .exam-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .exam-actions {
        align-items: center;
        flex-direction: row;
        justify-content: center;
    }
}
