/* Lab Detail Styles */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1db954;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 14px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #1ed760;
}

.lab-detail-container {
    padding: 20px;
}

.lab-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.lab-file-card {
    background: #282828;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lab-file-card:hover {
    background: #333333;
    border-color: #1db954;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(29, 185, 84, 0.2);
}

.lab-file-card-icon {
    font-size: 32px;
    color: #1db954;
}

.lab-file-card-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    word-break: break-word;
}

.lab-file-card-path {
    font-size: 12px;
    color: #b3b3b3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-file-card-type {
    font-size: 11px;
    color: #1db954;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-files {
    grid-column: 1 / -1;
    text-align: center;
    color: #b3b3b3;
    padding: 40px 20px;
    font-size: 16px;
}

/* ================= LAB DETAIL RESPONSIVE ================= */

/* Mobile: < 650px */
@media screen and (min-width: 651px) and (max-width: 1024px) {
    .lab-detail-container {
        padding: 10px;
    }

    .lab-files-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .lab-file-card {
        padding: 12px;
    }

    .lab-file-card-icon {
        font-size: 20px;
    }

    .lab-file-card-name {
        font-size: 12px;
    }

    .lab-file-card-path {
        font-size: 10px;
    }

    .back-btn {
        font-size: 11px;
        margin-bottom: 10px;
    }
}

/* Tablet: 651px - 1024px */
@media screen and (min-width: 651px) and (max-width: 1024px) {
    .lab-detail-container {
        padding: 14px;
    }

    .lab-files-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 14px;
    }

    .lab-file-card {
        padding: 14px;
    }

    .lab-file-card-icon {
        font-size: 24px;
    }

    .lab-file-card-name {
        font-size: 12px;
    }

    .back-btn {
        font-size: 12px;
    }
}

/* Laptop nhỏ: 769px - 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .lab-detail-container {
        padding: 16px;
    }

    .lab-files-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .lab-file-card {
        padding: 16px;
    }

    .lab-file-card-icon {
        font-size: 28px;
    }
}

/* Desktop: > 1025px */
@media screen and (min-width: 1025px) {
    .lab-detail-container {
        padding: 20px;
    }

    .lab-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Ultra-wide: > 1400px */
@media screen and (min-width: 1400px) {
    .lab-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}
