#mynetwork {
    width: 100%;
    height: 100%;
    background-color: #f9f6ef;
    /*border: 1px solid lightgray;*/
    position: relative;
    float: left;
}


#border {
    position:absolute;
    top:10px;
    left:10px;
    width:500px;
    height:23px;
    margin:auto auto auto auto;
    box-shadow: 0px 0px 4px rgba(0,0,0,0.2);
    border-radius:10px;
}

#text {
    position:absolute;
    top:8px;
    left:530px;
    width:30px;
    height:50px;
    margin:auto auto auto auto;
    font-size:22px;
    color: #000000;
}

div.outerBorder {
    position:relative;
    top:400px;
    width:600px;
    height:44px;
    margin:auto auto auto auto;
    border:8px solid rgba(0,0,0,0.1);
    background: rgb(252,252,252); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(252,252,252,1) 0%, rgba(237,237,237,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,252,252,1)), color-stop(100%,rgba(237,237,237,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
    border-radius:72px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}

body { 
    background: #f9f6ef !important; 
    font-family: 'Roboto Mono', monospace; 
}

#customLoadingOverlay .loading-text {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
}

#customLoadingOverlay .loading-bar-container {
    width: 200px;
    height: 4px;
    background: rgba(44, 62, 80, 0.08);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

#customLoadingOverlay .loading-bar-fill {
    height: 100%;
    background: #2c3e50;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Enhanced tooltip styling */
.vis-tooltip {
    font-family: 'Roboto Mono', monospace !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-size: 13px !important;
    border: 1px solid #444 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    max-width: 300px !important;
    word-wrap: break-word !important;
    white-space: pre-line !important;
}

/* Network canvas font */
.vis-network canvas {
    font-family: 'Roboto Mono', monospace !important;
}

.input-div {
    position: fixed;
    top: 100px;
    left: 30px;
}

#searchBoxHeader {
    font-size: 16px; 
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    position: fixed;
    top: 63px;
    left: 20px;
    z-index: 10;
}

#searchBox {
    border: 1px solid #aaa; 
    border-radius: 8px;
    padding: 8px; 
    font-size: 14px; 
    font-family: 'Roboto Mono', monospace;
    font-style: italic;
    font-weight: 400;
    background: white;
    position: fixed;
    top: 95px;
    left: 20px;
    z-index: 10;
}

#nextMatchBtn {
    border: 1px solid #aaa; 
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px; 
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
    background-color: #494540;
    position: fixed;
    top: 95px;
    left: 428px;
    z-index: 10;
    color: white;
}

#nextMatchBtn:hover {
    background-color: #1c1b1a;
    cursor: pointer;
    color: white;
}

@media (max-width: 700px) {
    #searchBox {
        max-width: 60%;
    }
    #nextMatchBtn {
        left: 67%;
    }
}

#searchBox { 
    width: 400px;
    box-sizing: border-box;
}

#exampleButtons {
    position: fixed;
    top: 140px;
    left: 20px;
    z-index: 10;
    font-family: 'Roboto Mono', monospace;
    /*transition: opacity 0.3s ease, visibility 0.3s ease;*/
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

#exampleButtons.hidden {
    opacity: 0;
    visibility: hidden;
}

#exampleButtons .examples-label {
    font-size: 14px;
    color: black;
    margin: 0 5px 0 0;
    font-weight: 400;
}

#exampleButtons .example-btn {
    background: #ddd8d1;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 0 4px 4px 0;
    font-size: 12px;
    font-style: italic;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
    /*transition: all 0.2s ease;*/
    display: inline-block;
    gap: 5px;
    color: black;
}

#exampleButtons .example-btn:hover {
    background: #b9b5b0;
}

/* Background fade overlay - now handled via vis.js network styling */

#clickInfo {
    background: white; 
    border: 1px solid #ccc; 
    border-radius: 8px;
    padding: 15px; 
    font-size: 13px; 
    width: 518px;
    max-width: 90%;
    max-height: 50%;
    overflow-y: auto;
    font-family: 'Roboto Mono', monospace;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    display: none;
    line-height: 1.5;
    position: fixed;
    top: 135px;
    left: 20px;
    z-index: 10;
    box-sizing: border-box;
}

@media (max-width: 428px) and (max-height: 1000px) {
    #clickInfo {
        max-height: 25%;
    }
}

#clickInfo .section-header {
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    margin: 8px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#clickInfo .clicked-domain {
    font-weight: 500;
    font-size: 14px;
    color: #34495e;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin: 4px 0 12px 0;
}

#clickInfo .domain-name {
    font-weight: 400;
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.3;
}

#clickInfo .clan-info {
    font-size: 11px;
    color: #7f8c8d;
    margin: 4px 0 0 0;
    font-weight: 300;
    line-height: 1.2;
}

#clickInfo .domain-details {
    font-size: 11px;
    color: #7f8c8d;
    margin: 3px 0 0 0;
    font-weight: 300;
}

#clickInfo ul {
    margin: 6px 0;
    padding-left: 0;
    list-style: none;
}

#clickInfo li {
    margin: 8px 0;
    padding: 6px 2px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

#clickInfo li:hover {
    background-color: #f0f8ff;
    border-radius: 4px;
    padding: 6px 6px;
}

#clickInfo li:last-child {
    border-bottom: none;
}

/* Legend styling */
#legend {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
}

#legend .legend-title {
    font-weight: 700;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#legend .legend-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

#legend .legend-symbol {
    width: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-right: 0;
}

#legend .legend-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 2px solid #2c3e50;
}

#legend .legend-line {
    width: 20px;
    height: 2px;
    background: #34495e;
}

#legend .legend-text {
    color: #2c3e50;
    font-weight: 400;
}

#welcomePopup {
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    background: rgba(252,252,252,1); 
    border: 1px solid #ccc; 
    border-radius: 8px;
    padding: 30px;
    width: 70%;
    max-width: 580px; 
    z-index: 100;
    font-family: 'Roboto Mono', monospace; 
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
}

#welcomePopup button {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    background: #ddd8d1;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 15px;
    margin-top: 0px;
    /*transition: background 0.2s ease;*/
}

#welcomePopup button:hover {
    background: #b9b5b0;
}
