.courses-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
}

.courses-header {
    text-align: center;
    margin-bottom: 2rem;
}

.courses-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--anarchy-yellow);
}

.courses-header p {
    font-size: 1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--anarchy-yellow);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-card {
    background: #f9fafb;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    border-color: #999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-card.enrolled {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8e8e8 0%, #d4edda 100%);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.course-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.course-description {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.course-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.course-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.course-detail-date {
    justify-content: flex-start;
}

.course-detail-time {
    justify-content: center;
}

.course-detail-venue {
    justify-content: flex-end;
}

.course-detail-instructor {
    grid-column: 1 / -1;
    justify-content: flex-start;
}

.course-detail svg {
    width: 18px;
    height: 18px;
    fill: #dc3545;
    flex-shrink: 0;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ccc;
}

.course-capacity {
    font-size: 0.85rem;
    color: #555;
}

.capacity-full {
    color: #dc3545;
}

.btn-register {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-register:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-register:disabled {
    background: #999;
    color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.enrolled-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #28a745;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.enrolled-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pending-badge {
    background: #ffc107;
    color: #000;
}

.no-courses {
    text-align: center;
    padding: 3rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
}

.no-courses svg {
    width: 64px;
    height: 64px;
    fill: #666;
    margin-bottom: 1rem;
}

.no-courses h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.no-courses p {
    color: #888;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: var(--anarchy-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state {
    text-align: center;
    padding: 3rem;
    background: #1a1a1a;
    border: 1px solid #dc3545;
    border-radius: 12px;
}

.error-state h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.retry-btn {
    background: var(--anarchy-yellow);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .courses-container {
        padding: 1rem;
        padding-top: 100px;
    }

    .course-header {
        flex-direction: column;
    }

    .course-details {
        grid-template-columns: 1fr;
    }

    .course-detail-date,
    .course-detail-time,
    .course-detail-venue,
    .course-detail-instructor {
        justify-content: flex-start;
    }

    .course-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-register, .enrolled-badge {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
