/* Engineering Welding Design Application Styles */

@layer utilities {
    /* Excel Yellow Highlight style for user input fields */
    .input-yellow {
        background-color: #fef9c3 !important; /* bg-yellow-100 */
        border-color: #fde047 !important;     /* border-yellow-300 */
        color: #1f2937 !important;
        font-weight: 600;
        transition: all 0.2s ease-in-out;
    }
    
    .input-yellow:hover {
        background-color: #fef08a !important; /* bg-yellow-200 */
    }
    
    .input-yellow:focus {
        background-color: #ffffff !important;
        border-color: #eab308 !important;     /* border-yellow-500 */
        box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.3) !important;
        outline: none;
    }
}

/* Engineering Blueprint / Graph Grid background */
.bg-grid-pattern {
    background-color: #0f172a;
    background-image: 
        radial-gradient(rgba(51, 65, 85, 0.4) 1px, transparent 1px),
        linear-gradient(to right, rgba(30, 41, 59, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(30, 41, 59, 0.5) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px, 40px 40px;
}

.bg-paper-grid {
    background-image: linear-gradient(#f1f5f9 1px, transparent 1px), linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
    background-size: 16px 16px;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tooltip styles */
.has-tooltip {
    position: relative;
}
.tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 50;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.has-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Pulse animation for active command prompt */
@keyframes terminalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: #22c55e;
    animation: terminalBlink 1s infinite;
    vertical-align: middle;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    .shadow-lg, .shadow-md, .shadow-xl {
        box-shadow: none !important;
    }
    .border {
        border-color: #94a3b8 !important;
    }
}


/* Central schematic SVG font override */
#weldSchematicSvg text {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: normal !important;
}
