/* Course List Page Styles */

/* Primary Color Variables */
:root {
    --primary: #0a486ff7;
    --primary-dark: #073454;
    --primary-light: #0d5a94;
    --bg-light: #f8f9fa;
    --text-dark: #343a40;
    --text-muted: #6c757d;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
}

/* Course List Container */
.course-list-container {
    background-color: var(--bg-light);
    min-height: 100vh;
    padding: 2rem 0;
    width: 100%;
}

.container{
    width: 100%;
}

/* Header Section - Clean & Minimal */
.page-header-clean {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(10, 72, 111, 0.15);
}

.page-header-clean h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header-clean p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1rem;
}

.header-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-header-primary {
    background: var(--white);
    color: var(--primary);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-header-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-header-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-header-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

/* Filter Card - Borderless */
.filter-card-clean {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-control-clean, .form-select-clean {
    border-radius: 8px;
    border: 1px solid rgba(10, 72, 111, 0.15);
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.form-control-clean:focus, .form-select-clean:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 72, 111, 0.1);
    outline: none;
}

.btn-filter {
    background: var(--primary);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-clear {
    background: rgba(10, 72, 111, 0.08);
    color: var(--primary);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear:hover {
    background: rgba(10, 72, 111, 0.15);
    color: var(--primary-dark);
}

/* Course Cards - Modern & Clean */
.course-card-clean {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-clean:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(10, 72, 111, 0.15);
}

.course-card-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 72, 111, 0.1) 0%, rgba(10, 72, 111, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card-image {
    width: 20%;
    height: 20%;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card-clean:hover .course-card-image {
    transform: scale(1.05);
}

.course-card-header-clean {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(10, 72, 111, 0.05) 0%, rgba(10, 72, 111, 0.08) 100%);
}

.course-card-clean.archived .course-card-header-clean {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(108, 117, 125, 0.08) 100%);
    opacity: 0.8;
}

.badges-container-clean {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge-clean {
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(10, 72, 111, 0.1);
    color: var(--primary);
}

.badge-clean.archived {
    background: rgba(108, 117, 125, 0.15);
    color: var(--text-muted);
}

.badge-clean.co-teacher {
    background: rgba(103, 58, 183, 0.1);
    color: #673ab7;
}

.course-code-clean {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.course-code-clean:hover {
    background: rgba(10, 72, 111, 0.08);
    color: var(--primary);
}

.course-code-clean .copy-icon {
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 0.75rem;
}

.course-code-clean:hover .copy-icon {
    opacity: 1;
}

.course-code-clean.copied {
    background: var(--success);
    color: white;
}

.course-code-clean.copied .copy-icon {
    opacity: 1;
}

.course-card-body-clean {
    padding: 1.25rem;
    flex: 1;
}

.course-title-clean {
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-description-clean {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.course-card-footer-clean {
    padding: 1rem 1.25rem;
    background: rgba(10, 72, 111, 0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.btn-card {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-card-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-card-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-card-secondary {
    background: rgba(10, 72, 111, 0.08);
    color: var(--primary);
}

.btn-card-secondary:hover {
    background: rgba(10, 72, 111, 0.15);
    color: var(--primary-dark);
}

.btn-card-archive {
    background: rgba(108, 117, 125, 0.08);
    color: var(--text-muted);
}

.btn-card-archive:hover {
    background: rgba(108, 117, 125, 0.15);
    color: var(--text-dark);
}

/* Section Headers */
.section-header-clean {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(10, 72, 111, 0.1);
}

.section-title-clean {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.btn-section-view {
    background: rgba(10, 72, 111, 0.08);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-section-view:hover {
    background: rgba(10, 72, 111, 0.15);
    color: var(--primary-dark);
}

/* Empty State */
.empty-state-clean {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.empty-state-icon-clean {
    font-size: 4rem;
    color: rgba(10, 72, 111, 0.2);
    margin-bottom: 1.5rem;
}

.empty-state-clean h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.empty-state-clean p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Messages */
.message-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}


.message-icon {
    font-size: 1.5rem;
}

.message-card.success .message-icon {
    color: var(--success);
}

.message-card.warning .message-icon {
    color: var(--warning);
}

.message-card.error .message-icon {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .course-list-container {
        padding: 1rem 0;
    }
    
    .page-header-clean {
        padding: 1.5rem;
    }
    
    .page-header-clean h1 {
        font-size: 1.5rem;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .btn-header-primary,
    .btn-header-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-header-clean {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-section-view {
        width: 100%;
        justify-content: center;
    }
    
    .course-card-footer-clean {
        flex-direction: column;
    }
    
    .btn-card {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================
   Claim Course Modal - Minimal & Professional
   ================================================ */

.claim-course-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.claim-course-header {
    background: #ffffff;
    border: none;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.claim-course-header .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.claim-course-header .modal-title i {
    color: var(--primary);
    font-size: 1.375rem;
}

.claim-course-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0 0;
}

.claim-course-body {
    padding: 2rem 2.5rem;
}

.claim-input-group {
    margin-bottom: 2rem;
}

.claim-label {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.claim-label i {
    color: var(--primary);
    font-size: 1rem;
}

.claim-input-wrapper {
    position: relative;
}

.claim-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.claim-input {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.claim-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 72, 111, 0.1);
    outline: none;
}

.claim-help-text {
    color: var(--text-muted);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.claim-help-text i {
    font-size: 0.875rem;
    opacity: 0.7;
}

.claim-info-section {
    background: rgba(10, 72, 111, 0.03);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.claim-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.claim-info-number {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.claim-course-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 2.5rem;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.claim-btn-cancel {
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.claim-btn-cancel:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: var(--text-dark);
}

.claim-btn-submit {
    padding: 0.625rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.claim-btn-submit:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 72, 111, 0.25);
}

.claim-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.claim-btn-submit i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .claim-course-header {
        padding: 1.5rem;
    }
    
    .claim-course-body {
        padding: 1.5rem;
    }
    
    .claim-course-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column-reverse;
    }
    
    .claim-btn-cancel,
    .claim-btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .claim-info-section {
        padding: 1rem;
    }
}


