.device-detail-container {
    max-width: 1450px;
    margin: 0 auto 48px auto;
    padding: 0 24px;
    font-family: 'Inter', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.device-hero-card {
    background: #074d78;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.device-hero-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.device-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.device-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.device-status.status-active {
    background: rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}

.device-status.status-inactive {
    background: rgba(239, 68, 68, 0.22);
    color: #fecaca;
}

.device-hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.device-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 2.5rem;
    margin: 0;
    color: #ffffff;
    font-family: system-ui, sans-serif;
}

.device-hero-actions {
    display: flex;
    gap: 12px;
}

.device-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-hero-icon img {
    width: 140px;
    height: auto;
    opacity: 0.4;
}

.device-hero-icon--has-image {
    width: 200px;
    max-width: 40%;
    height: 140px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    opacity: 1;
}

.device-hero-icon--has-image .device-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
    opacity: 1;
}

.device-image-clickable {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.device-image-clickable:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Resim Modal Stilleri */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 25px;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.image-modal-close:hover,
.image-modal-close:focus {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.image-modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 80%;
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .image-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .image-modal-caption {
        bottom: 20px;
        font-size: 1rem;
        padding: 8px 16px;
        max-width: 90%;
    }
}

/* Video Modal Stilleri */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: 90%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    position: relative;
    background: #000;
}

.video-modal-content iframe,
.video-modal-content video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.video-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 25px;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover,
.video-modal-close:focus {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .video-modal-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .video-modal-content {
        max-width: 95%;
        width: 95%;
    }
}

.btn-yellow {
    background: #facc14;
    color: #1a2746;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    max-width: fit-content;
    font-family: system-ui,sans-serif;
}

.btn-yellow:hover {
    background: #fff700;
}

.btn-video {
    background: #074d78;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: fit-content;
    font-family: system-ui, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-video:hover {
    background: #063d61;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 77, 120, 0.3);
}

.btn-video i {
    font-size: 0.9rem;
}

.video-watch-btn-container {
    display: inline-flex;
}

.btn-disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    pointer-events: none;
    background: #d1d5db !important;
    color: #4b5563 !important;
}

.test-request-btn-container {
    position: relative;
    display: inline-flex;
}

.service-unavailable-overlay {
    position: absolute;
    inset: 0;
    transform: none;
    background: rgba(15, 23, 42, 0.92);
    padding: 0 16px;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    justify-content: center;
    background: black;
}

.service-unavailable-overlay i {
    font-size: 1rem;
    color: #f87171;
}

.service-unavailable-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: white;
}

.device-tabs-card {
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.laboratory-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.laboratory-tabs .tab-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: system-ui, sans-serif;
    font-weight: 500;
    color: #737b8c;
    transition: color 0.2s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    outline: none;
}

.laboratory-tabs .tab-btn.active {
    color: #0f172a;
    border-bottom-color: #074d78;
}

.laboratory-content-card {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 32px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 1.05rem;
    color: #1f2937;
    margin-top: 8px;
}

.tab-content {
    min-height: 220px;
}

.laboratory-description {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 18px;
    font-family: system-ui, sans-serif;
}

.laboratory-description b {
    color: #2b303b;
    font-weight: 600;
    font-size: 1rem;
}

.laboratory-description span {
    color: #737b8c;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    text-transform: none;
}

.laboratory-link {
    color: #074d78;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
}

.laboratory-link:hover,
.laboratory-link:focus,
.laboratory-link:active,
.laboratory-link:visited {
    color: #074d78;
    text-decoration: underline;
}

.device-rich-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: system-ui, sans-serif;
}

.device-rich-text b {
    font-weight: 600;
    color: #2b303b;
}

.device-rich-text-body {
    color: #737b8c;
    font-size: 1rem;
    line-height: 1.6;
}

.device-rich-text-body p {
    margin: 0 0 12px 0;
}

.device-rich-text-body p:last-child {
    margin-bottom: 0;
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-section h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    font-family: system-ui, sans-serif;
}

/*.contact-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}*/

.contact-label {
    min-width: 160px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2b303b;
}

.contact-value {
    font-size: 0.875rem;
    color: #4b5563;
    flex: 1;
}

.contact-link {
    font-size: 0.875rem;
    color: #074d78;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover,
.contact-link:focus,
.contact-link:active,
.contact-link:visited {
    color: #074d78;
    text-decoration: underline;
}

.device-map-container {
    width: 100%;
    margin-top: 16px;
}

.device-map-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.device-map-iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.device-map-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}

.device-map-address {
    font-size: 1rem;
    color: #2b303b;
    line-height: 1.6;
    font-family: system-ui, sans-serif;
}

.device-map-address strong {
    font-weight: 600;
    color: #1a2746;
    display: block;
    margin-bottom: 4px;
}

.device-map-link {
    padding: 8px 16px;
    background: #074d78;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.device-map-link:hover {
    background: #063d60;
    color: #ffffff;
}

.device-experiments {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experiments-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 36px;
    color: #6b7280;
    font-size: 0.95rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.experiments-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.experiment-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #1f2937;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.experiment-card:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.experiment-card .experiment-name {
    font-size: 1rem;
    color: #074d78;
}

.card-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.card-icon-container img {
    width: 56px;
    height: 56px;
}

.no-experiments {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.no-experiments i {
    font-size: 3rem;
    color: #94a3b8;
}

.back-link-wrapper {
    display: flex;
    justify-content: flex-start;
}

.back-link {
    color: #074d78;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 8px 10px;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.back-link-icon {
    width: 18px;
    height: 18px;
}

.back-link:hover {
    background: #facc14;
    color: #074d78;
}

@media (max-width: 1024px) {
    .device-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .device-hero-icon--has-image {
        width: 100%;
        max-width: 100%;
        height: 230px;
    }

    .device-hero-icon img {
        width: 120px;
    }

    .laboratory-tabs {
        overflow-x: auto;
    }

    .experiments-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .device-map-iframe {
        height: 350px;
    }

    .device-map-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .device-detail-container {
        padding: 0 16px;
        gap: 24px;
    }

    .device-hero-card {
        padding: 1.5rem;
    }

    .device-hero-icon--has-image {
        height: 200px;
    }

    .device-hero-title {
        font-size: 1.9rem;
        line-height: 2.2rem;
    }

    .laboratory-content-card {
        padding: 24px;
    }

    .laboratory-description {
        flex-direction: column;
        gap: 8px;
    }

    .experiments-list {
        grid-template-columns: 1fr;
    }

    .contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .contact-label {
        min-width: 0;
    }

    .device-map-iframe {
        height: 300px;
    }

    .device-map-info {
        flex-direction: column;
        gap: 12px;
    }

    .device-map-link {
        width: 100%;
        text-align: center;
    }
}
