/* Import the Outfit font to ensure consistency */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Base Styling --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    /* Deep dark background matching your delineate theme */
    background-color: #0b0c10; 
    color: #ffffff;
    overflow: hidden; /* Prevents scrollbars when the graph is full screen */
}

/* --- The Cytoscape Graph Container --- */
#cy {
    width: 100vw;
    /* Assumes your top-nav is roughly 70px tall. Adjust if necessary. */
    height: calc(100vh - 70px); 
    position: absolute;
    top: 70px; /* Pushes the graph below the nav bar */
    left: 0;
    z-index: 1;
    /* Adds a subtle radial glow behind the graph */
    background: radial-gradient(circle at center, #501409 0%, #0b0c10 70%);
}

/* --- The Floating Control Panel --- */
#controls {
    position: absolute;
    top: 100px; /* Positions it nicely below the nav */
    left: 30px;
    z-index: 10;
    
    /* Glassmorphism effect matching your feature cards */
    background: rgba(30, 30, 35, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 250px;
}

/* The Heading inside the control panel */
#controls h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    /* Your text-gradient style */
    background: linear-gradient(90deg, #ba5316 0%, #aa480f 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Dropdown Select Styling --- */
#ecosystemSelect {
    font-family: 'Outfit', sans-serif;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none; /* Removes default browser styling */
}

/* Add a custom arrow to the dropdown */
#ecosystemSelect {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

#ecosystemSelect:focus {
    border-color: #5e0a0a;
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
}

#ecosystemSelect option {
    background-color: #5d2d0b; /* Dark background for dropdown options */
    color: white;
}

/* --- The Button (Mimicking your btn-primary) --- */
#controls button {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(90deg, #9a5308 0%, #993a06 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 132, 6, 0.3);
}

#controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(140, 7, 7, 0.5);
}

#controls button:active {
    transform: translateY(0);
}

/* Custom Slide-in Notification */
.custom-notification {
    position: fixed;
    bottom: 30px;
    right: -400px; /* Start hidden off-screen to the right */
    width: 320px;
    background-color: #222; /* Dark background */
    color: #fff;
    padding: 16px;
    border-left: 5px solid #e65100; /* Warm orange accent */
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy slide-in */
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
    pointer-events: none; /* Let clicks pass through if needed */
}

/* Class added via JS to trigger the slide in */
.custom-notification.show {
    right: 30px; 
}

.notification-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffb300; /* Amber title */
    margin-bottom: 6px;
}

.notification-body {
    font-size: 15px;
    color: #e0e0e0;
    line-height: 1.4;
}