/* Custom UI Elements matching 'industriële thema-stijl' */
body {
    background-color: #1a1a24;
    color: #edf2f4;
    font-family: 'Inter', sans-serif;
    background-image: radial-gradient(#2b2d42 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Pipes/Industrial decorative background elements */
.bg-pipe {
    position: fixed;
    background: linear-gradient(90deg, #3a3f58, #4a5072, #3a3f58);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.bg-pipe-h {
    top: 10%;
    left: 0;
    width: 100%;
    height: 30px;
}

.bg-pipe-v {
    top: 0;
    right: 10%;
    width: 40px;
    height: 100%;
}

/* Industrial Cards */
.panel {
    background: linear-gradient(145deg, #2b2d42, #212333);
    border: 2px solid #4a5072;
    border-top: 4px solid #ff6b35;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
}

/* Bolts for panels */
.panel::before,
.panel::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #8d99ae;
    border-radius: 50%;
    box-shadow: inset -1px -1px 3px rgba(0, 0, 0, 0.5), 1px 1px 2px rgba(255, 255, 255, 0.3);
    top: 10px;
}

.panel::before {
    left: 10px;
}

.panel::after {
    right: 10px;
}

/* Industrial Buttons */
.btn-industry {
    background: linear-gradient(to bottom, #ff8c42, #ff6b35);
    border: 1px solid #c24914;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.1s;
}

.btn-industry:active {
    background: #e05a28;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(2px);
}

.btn-cold {
    background: linear-gradient(to bottom, #a0b0cc, #8d99ae);
    border-color: #5c687e;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
}

.btn-outline:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Inputs */
.input-industry {
    background: #1a1a24;
    border: 2px solid #4a5072;
    color: #edf2f4;
    font-family: 'Roboto Mono', monospace;
    transition: border-color 0.3s;
}

.input-industry:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.3);
}

/* Gauge / Meters */
.gauge-container {
    width: 100px;
    height: 50px;
    overflow: hidden;
    position: relative;
}

.gauge-arch {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #4a5072;
    border-top-color: #d90429;
    border-right-color: #ff6b35;
    border-bottom-color: #8cc63f;
    border-left-color: #0066cc;
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-45deg);
}

/* Scenario Styling */
.scenario-text {
    font-family: 'Roboto Mono', monospace;
    border-left: 4px solid #ff6b35;
    padding-left: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

/* Toasts & Modals (Custom UI as requested) */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #2b2d42;
    border-left: 5px solid #8cc63f;
    color: white;
    padding: 15px 20px;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: #d90429;
}

.toast.warning {
    border-left-color: #ff6b35;
}

.toast.info {
    border-left-color: #0066cc;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: none;
}

.modal-content {
    background: #2b2d42;
    border: 2px solid #4a5072;
    border-top: 5px solid #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid for tools */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: #1a1a24;
    border: 1px solid #4a5072;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-card:hover {
    border-color: #ff6b35;
    background: #212333;
}

.tool-card.selected {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 107, 53, 0.2);
}