/* NOVA PACS Viewer Stilleri - Splash ekranından esinlenerek */
.cornerstone3d-viewer-container {
    border: none;
    border-radius: 8px;
    overflow: visible;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.viewer-toolbar {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.viewer-toolbar .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.viewer-toolbar .btn {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.viewer-toolbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.viewer-toolbar .btn.btn-primary,
.viewer-toolbar .btn.btn-danger {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.viewer-toolbar .btn.btn-primary:hover,
.viewer-toolbar .btn.btn-danger:hover {
    background: rgba(255, 255, 255, 0.4);
}

.viewer-toolbar .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.viewer-toolbar .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.dicom-viewport {
    position: relative;
    min-height: 400px;
    background: #000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1;
}

.dicom-viewport canvas {
    width: 100% !important;
    height: 100% !important;
}

.measurement-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
}

.viewer-metadata {
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    padding: 12px;
    backdrop-filter: blur(10px);
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown menüler için stil */
.viewer-toolbar .dropdown {
    position: relative;
    z-index: 10001;
}

.viewer-toolbar .dropdown-menu {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.3s ease-out;
    z-index: 10001 !important;
    position: absolute !important;
    min-width: 200px;
    margin-top: 0.125rem;
}

.viewer-toolbar .dropdown-item {
    color: white;
    transition: all 0.2s ease;
}

.viewer-toolbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.viewer-toolbar .dropdown-item.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Badge ve label'lar için stil */
.viewer-toolbar .badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Input ve select elementleri için stil */
.viewer-toolbar input,
.viewer-toolbar select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.viewer-toolbar input:focus,
.viewer-toolbar select:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    outline: none;
}

.viewer-toolbar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Divider'lar için stil */
.viewer-toolbar .divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
}
