.scormtiles-main-section {
    width: 100%;
    margin-bottom: 28px;
}

.scormtiles-main-wrap {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
}

.scormtiles-frame-wrap {
    width: 100%;
    height: 80vh;
    min-height: 480px;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
}

#scormtiles-main-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.scormtiles-main-title {
    margin-top: 8px;
    font-weight: 600;
}

.scormtiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
    background: #fff;
}

.scormtiles-card {
    width: calc(33.333% - 19px);
    min-width: 220px;
    min-height: 220px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 12px;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.scormtiles-card:hover,
.scormtiles-card:focus {
    border: 2px solid #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.scormtiles-card.is-selected {
    border: 2px solid #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.scormtiles-card.is-missing {
    cursor: not-allowed;
    opacity: 0.65;
}

.scormtiles-card-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f5f7;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scormtiles-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scormtiles-package-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 2px solid #6c757d;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    background: #fff;
}

.scormtiles-card-title {
    margin-top: 8px;
    line-height: 1.4;
    font-weight: 600;
}

.scormtiles-card-warning {
    margin-top: 6px;
    line-height: 1.3;
    font-size: 0.85rem;
    color: #a94442;
}

@media (max-width: 900px) {
    .scormtiles-card {
        width: calc(50% - 14px);
    }
}

@media (max-width: 560px) {
    .scormtiles-card {
        width: 100%;
    }

    .scormtiles-frame-wrap {
        height: 70vh;
        min-height: 360px;
    }
}
