/* Estilos da página Meus Cursos extraídos de mycourses.blade.php */

.my-courses-container {
    padding: 30px 0;
}

.my-courses-header {
    margin-bottom: 40px;
    text-align: center;
    padding-top: 18px;
}

.my-courses-header h2 {
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 18px;
}

.my-courses-header .subtitle {
    color: #6b7280;
    font-size: 17px;
    margin-bottom: 18px;
}

.course-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 38px;
    justify-content: center;
}

.course-filter-group .btn {
    border-radius: 999px;
    padding: 9px 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-weight: 600;
    transition: .2s ease-in-out;
}

.course-filter-group .btn.active,
.course-filter-group .btn:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .18);
}

.course-card {
    border: none;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    transition: .25s ease-in-out;
    overflow: hidden;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .13);
}

.course-card-top {
    height: 90px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    backdrop-filter: blur(8px);
}

.favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.95);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card-body {
    padding: 20px;
}

.course-title {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    min-height: 44px;
    margin-bottom: 14px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.status-badge {
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 10px;
}

.status-progress {
    background: #e0f2fe;
    color: #0369a1;
}

.status-completed {
    background: #fff7ed;
    color: #fa8418;
}

.grade-box {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

.progress {
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-bottom: 18px;
}

.progress-bar {
    border-radius: 999px;
}

.progress-bar.bg-success {
    background-color: #fa8418 !important;
}

.course-actions {
    display: flex;
    gap: 8px;
}

.course-actions .btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 9px 12px;
}

.course-actions .btn.certificado-btn {
    background: #fa8418;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    transition: background 0.2s;
}

.course-actions .btn.certificado-btn:hover,
.course-actions .btn.certificado-btn:focus {
    background: #d86f0f;
    color: #fff;
}

.no-badges {
    text-align: center;
    background: #fff;
    border-radius: 24px;
    padding: 50px 25px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.no-badges i {
    color: #0d6efd;
    font-size: 42px !important;
    margin-bottom: 14px;
}

.browse-btn {
    background: #0d6efd;
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
}

.browse-btn:hover {
    background: #0b5ed7;
    color: #fff;
}

/*
 * CSS extraído de registrations-pdf.blade.php
 * Utilize este bloco para centralizar estilos de PDFs e relatórios customizados.
 */

@page {
    margin: 2cm 1.5cm;
    @top-center {
        content: "Y2HL - Young 2 Healthy Living";
    }
    @bottom-center {
        content: "Página " counter(page) " de " counter(pages);
    }
}

body.pdf-export {
    font-family: 'DejaVu Sans', Arial, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: #333;
    margin: 0;
    padding: 0;
}

.header.pdf-export {
    text-align: center;
    border-bottom: 3px solid #007bff;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.logo.pdf-export {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.header.pdf-export h1 {
    color: #007bff;
    font-size: 24px;
    margin: 10px 0;
    font-weight: bold;
}

.header.pdf-export h2 {
    color: #666;
    font-size: 18px;
    margin: 5px 0;
    font-weight: normal;
}

.info-section.pdf-export {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.info-grid.pdf-export {
    display: table;
    width: 100%;
}

.info-row.pdf-export {
    display: table-row;
}

.info-label.pdf-export {
    display: table-cell;
    font-weight: bold;
    padding: 5px 10px 5px 0;
    width: 25%;
    color: #495057;
}

.info-value.pdf-export {
    display: table-cell;
    padding: 5px 0;
}

.stats-section.pdf-export {
    margin-bottom: 20px;
}

.stats-grid.pdf-export {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 10px;
}

.stat-item.pdf-export {
    display: table-cell;
    text-align: center;
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 6px;
    width: 25%;
}

.stat-number.pdf-export {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    display: block;
}

.stat-label.pdf-export {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

table.pdf-export {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 10px;
}

th.pdf-export, td.pdf-export {
    border: 1px solid #dee2e6;
    padding: 8px 6px;
    text-align: left;
}

th.pdf-export {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5px;
}

tr.pdf-export:nth-child(even) {
    background-color: #f8f9fa;
}

tr.pdf-export:hover {
    background-color: #e3f2fd;
}

.status.pdf-export {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    color: white;
}

.status-registered.pdf-export { background-color: #6c757d; }
.status-confirmed.pdf-export { background-color: #19bfab; }
.status-cancelled.pdf-export { background-color: #dc3545; }
.status-attended.pdf-export { background-color: #17a2b8; }

.type-badge.pdf-export {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: bold;
    color: white;
}

.type-online.pdf-export { background-color: #17a2b8; }
.type-presencial.pdf-export { background-color: #19bfab; }

.footer.pdf-export {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: #666;
    border-top: 1px solid #dee2e6;
    padding-top: 2px;
    padding-bottom: 2px;
    background: #fff;
}

.no-registrations.pdf-export {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.page-break.pdf-export {
    page-break-before: always;
}
