/* Custom medical scanner styling */
body {
    background: linear-gradient(135deg, #1e293b 0%, #1e40af 50%, #1e293b 100%);
    margin: 0;
    padding: 0;
}

/* Scanner beam animation */
@keyframes scan-beam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulsing indicator */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Canvas styling for medical feel */
canvas {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    background: radial-gradient(circle at center, #001100 0%, #000000 100%);
}

/* Custom scrollbar for medical theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Button hover effects */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Medical scanner green glow */
.scanner-glow {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

/* Range slider styling */
input[type="range"] {
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #374151;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d9488;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d9488;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading spinner for when scanning */
.scan-loading {
    animation: spin 1s linear infinite;
}

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

/* Medical-style panel borders */
.medical-panel {
    border: 2px solid #0d9488;
    border-radius: 8px;
    background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    canvas {
        width: 300px !important;
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    canvas {
        width: 250px !important;
        height: 250px !important;
    }
}