/* Custom styling for Microservice Mapper */

body, html {
    margin: 0;
    padding: 0;
    touch-action: none;
}

/* Glass Panels */
.glass-panel {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

/* Scrollbars */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Form Inputs */
.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    transition: all 0.2s ease;
    outline: none;
}
.input-field:focus {
    border-color: rgba(229, 80, 57, 0.5); /* Primary */
    box-shadow: 0 0 0 2px rgba(229, 80, 57, 0.1);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E55039;
    color: white;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #c0392b;
    box-shadow: 0 4px 12px rgba(229, 80, 57, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #9ca3af;
    background: transparent;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.btn-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
    color: #9ca3af;
    transition: color 0.2s ease;
}
.btn-ghost:hover {
    color: #E55039;
}

/* Tabs */
.tab-btn {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Status Badges */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-healthy { background: rgba(120, 224, 143, 0.15); color: #78E08F; border: 1px solid rgba(120, 224, 143, 0.3); }
.status-degraded { background: rgba(240, 147, 43, 0.15); color: #F0932B; border: 1px solid rgba(240, 147, 43, 0.3); }
.status-down { background: rgba(229, 80, 57, 0.15); color: #E55039; border: 1px solid rgba(229, 80, 57, 0.3); }

/* Range Slider */
input[type=range] {
    -webkit-appearance: none;
    outline: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E55039;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 1);
}

/* Cytoscape Container */
#cy {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
