/* Lab Detail Page Styles */
.lab-detail-page {
    background: #f8fafc;
    padding: 20px 0 40px 0;
}

/* Lab Header */
.lab-header {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lab-hero {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 20px;
}

.lab-image-container {
    flex-shrink: 0;
}

.lab-main-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.lab-header-info {
    flex: 1;
}

.lab-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.lab-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.6;
}

.lab-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.lab-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lab-badge.certification {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.lab-badge.location {
    background: linear-gradient(135deg, #105091 0%, #083d66 100%);
}

.lab-rating-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-score {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.rating-stars {
    color: #f59e0b;
}

.rating-count {
    color: #64748b;
    font-size: 14px;
}

.lab-quick-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-stat {
    text-align: center;
    min-width: 80px;
}

.quick-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 2px;
}

.quick-stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Tabs */
.lab-nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
    position: sticky;
    top: 80px;
    z-index: 20;
}

.lab-nav-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    gap: 5px;
}

.lab-nav-tab {
    padding: 15px 20px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.lab-nav-tab.active,
.lab-nav-tab:hover {
    color: #667eea;
    border-bottom-color: #667eea;
    text-decoration: none;
}

/* Content Sections */
.lab-content-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
}

/* About Section */
.about-content {
    line-height: 1.7;
    color: #374151;
}

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

.lab-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.lab-contact-icon {
    width: 20px;
    height: 20px;
    color: #667eea;
    flex-shrink: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lab-contact-details {
    flex: 1;
}

.lab-contact-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.lab-contact-value {
    font-weight: 600;
    color: #1e293b;
}

/* Products Grid - Using front-pages format */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card-produk {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.card-produk:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-produk:hover .image-container img {
    transform: scale(1.05);
}

.kotak-content {
    padding: 10px;
}

.badge {
    align-self: start;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.badge.bg-success {
    background: #10b981 !important;
    color: white;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 2.8em;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-rating .fas.fa-star {
    font-size: 12px;
}

.product-rating .fas.fa-star.text-warning {
    color: #ffc107 !important;
}

.product-rating .fas.fa-star.text-muted {
    color: rgba(108, 117, 125, 0.3) !important;
}

.product-rating span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Load More Section */
.load-more-section {
    margin: 30px 0;
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.load-more-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.load-more-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-spinner .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loader */
.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.skeleton-image {
    height: 180px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-content {
    padding: 15px;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-line.badge {
    width: 60px;
    height: 18px;
}

.skeleton-line.title {
    width: 100%;
}

.skeleton-line.price {
    width: 70%;
}

.skeleton-line.meta {
    width: 50%;
    height: 10px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Equipment Section */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.equipment-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.equipment-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.equipment-info {
    padding: 20px;
}

.equipment-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.equipment-brand {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 10px;
}

.equipment-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.equipment-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
}

.status-indicator.maintenance {
    background: #f59e0b;
}

.status-indicator.repair {
    background: #ef4444;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #105091 0%, #083d66 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-description {
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn.primary {
    background: white;
    color: #105091;
}

.cta-btn.primary:hover {
    background: #f1f5f9;
    color: #083d66;
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lab-hero {
        flex-direction: column;
        text-align: center;
    }

    .lab-main-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .lab-title {
        font-size: 1.5rem;
    }

    .lab-quick-stats {
        justify-content: center;
    }

    .products-grid,
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .lab-content-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .lab-contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Bootstrap Icons for Rating - Ensure compatibility */
.bi-star-fill {
    font-family: "bootstrap-icons" !important;
}

.text-soft-secondary {
    color: rgba(206, 212, 218, 0.5) !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* Footer Overrides - Ensure footer maintains dark theme */
.modern-footer {
    background: var(--gray-900) !important;
    color: var(--white) !important;
}

/* Footer contact info styles - ensure footer remains dark */
.modern-footer .contact-info {
    background: transparent !important;
}

.modern-footer .contact-item {
    background: transparent !important;
    border: none !important;
    padding: 15px !important;
}

.modern-footer .contact-details p,
.modern-footer .contact-details,
.modern-footer .footer-title,
.modern-footer .footer-text {
    color: var(--white) !important;
    background: transparent !important;
}

.modern-footer .contact-icon i {
    color: var(--primary-color) !important;
}

/* Ensure all footer text remains white */
.modern-footer * {
    color: inherit !important;
}

.modern-footer .footer-section {
    background: transparent !important;
}