body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

#graph-container {
    width: 100vw;
    height: 100vh;
    background-color: #f8fafc;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#search-container {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0 15px;
    width: 300px;
    z-index: 1000;
}

.search-icon {
    display: flex;
    align-items: center;
    color: #64748b;
    margin-right: 10px;
}

#search-input {
    border: none;
    height: 42px;
    flex-grow: 1;
    outline: none;
    font-size: 14px;
    color: #334155;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
}

#search-input::placeholder {
    color: #94a3b8;
}

/* Dropdown styling */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #334155;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
}

#reset-view {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    border: none;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

#reset-view:hover {
    background-color: #f1f5f9;
    color: #334155;
}

#graph-container > svg {
    width: 100%;
    height: 100%;
    display: block;
}

.node {
    cursor: pointer;
    transition: opacity 0.2s;
}

.node rect {
    transition: fill 0.2s, stroke 0.2s, stroke-width 0.2s;
}

.node.dragging {
    cursor: grabbing;
}

.node.highlighted rect {
    fill: #FFA500;
    stroke: #e59500;
    stroke-width: 2.5px;
}

.edge path {
    stroke: #999;
    stroke-width: 1.5px;
    opacity: 0.7;
    transition: stroke 0.2s, stroke-width 0.2s, opacity 0.2s;
}

.edge path.highlighted {
    stroke: #FFA500;
    stroke-width: 2.5px;
    opacity: 1;
}

.hidden {
    display: none;
}

#show-all {
    position: absolute;
    top: 20px;
    right: 72px; /* Positioned to the left of the reset button with some spacing */
    background-color: white;
    border: none;
    border-radius: 8px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 0 15px;
    margin: 0;
}

#show-all:hover {
    background-color: #f1f5f9;
    color: #334155;
}

#show-all svg {
    margin-right: 8px;
}