/* Instructors Frontend Styles - Simple and Clean */

/* Menu item icon - using bootstrap-icons like other menu items in parent theme */
.woocommerce-MyAccount-navigation-link--instruktormateriell a::before {
    content: "\F194"; /* Bootstrap Icons book icon */
    font-family: bootstrap-icons;
    font-size: 16px;
}

.instructors-resources {
    margin-top: 20px;
}

.instructors-resources .instructors-title,
.instructors-resources h2.instructors-title {
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.instructors-search-box {
    margin-bottom: 20px;
    text-align: right;
}

.instructors-search-box input,
.instructors-search-box #instructors-search,
.instructors-resources .instructors-search-box input {
    width: auto;
    max-width: 250px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
    text-align: left;
}

.instructors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.instructors-table td {
    padding: 3px 12px 3px 0;
    text-align: left;
    border-bottom: none;
    vertical-align: middle;
}

.instructors-table tr:hover {
    background-color: #f9f9f9;
}

.instructors-table .resource-name {
    font-weight: 500;
}

.instructors-table .resource-name {
    text-align: left;
}

.instructors-table .resource-extension {
    text-align: center;
    width: 80px;
    vertical-align: middle;
    line-height: normal;
}

.instructors-table .resource-action {
    text-align: center;
    width: 50px;
}

.instructors-download-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2271b1;
    text-decoration: none;
    line-height: 1;
    font-size: 14px;
}

.instructors-download-icon:hover {
    color: #135e96;
}

.instructors-download-icon .bi {
    font-family: bootstrap-icons;
    font-size: 20px;
}

.instructors-table .button {
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 3px;
}

.file-extension-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    vertical-align: middle;
    line-height: 1.2;
}

/* Embed Modal */
.instructors-embed-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.instructors-embed-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 4px;
    position: relative;
}

.instructors-embed-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.instructors-embed-modal-close:hover {
    color: #000;
}

/* DataTables customization - Hide default controls */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
    display: none;
}

/* Category Sections */
.instructors-category-section {
    margin-bottom: 40px;
}

.instructors-category-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    color: #333;
}

.instructors-category-table {
    margin-top: 0;
    margin-bottom: 0;
}

.instructors-category-table:first-child {
    margin-top: 0;
}

#instructors-resources-by-category {
    margin-top: 20px;
}
