* {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0b305b;
    --primary-light: #005c87;
    --gray-dark: #1f2937;
    --gray-light: #f3f4f6;
    --max-width: 1200px;
    --text-color: #333;
    --background-color: #f4f4f6;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: #fff;
}

a,
a:hover,
a:focus,
a:active {
    text-decoration: none;
    color: inherit;
}

.table-responsive-stack tr {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
}


.table-responsive-stack td,
.table-responsive-stack th {
    display: block;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.table-responsive-stack .table-responsive-stack-thead {
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .table-responsive-stack tr {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        border-bottom: 3px solid #ccc;
        display: block;

    }

    /*  IE9 FIX   */
    .table-responsive-stack td {
        float: left\9;
        width: 100%;
    }
}

header,
.navbar {
    background: var(--gray-dark);
    color: white;
}

a:link {
    text-decoration: none;
}

footer a:link,
footer a:visited {
    color: white;
    text-decoration: none;
}

footer {
    margin-top: auto;
}

#navText {
    font-size: 25px;
}

.stt {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #0b305b url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='currentColor' d='M352 352c-8.188 0-16.38-3.125-22.62-9.375L192 205.3l-137.4 137.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25C368.4 348.9 360.2 352 352 352z'%3E%3C/path%3E%3C/svg%3E") center no-repeat;
    box-shadow: 0 0.25rem 0.5rem 0 gray;
    opacity: 0.7;
}

.stt:hover {
    opacity: 0.8;
}

.stt:focus {
    opacity: 0.9;
}

.stt:active {
    opacity: 1;
}

.asn-tag {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-title {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.peeringdb-link {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.peeringdb-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.peeringdb-link i {
    margin-right: 8px;
}

.peeringdb-badge {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #6c757d;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-active {
    background-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.status-inactive {
    background-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.url-card {
    border-left: 4px solid #2b5876;
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.url-card:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.url-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.url-link {
    color: #2b5876;
    text-decoration: none;
    word-break: break-all;
}

.url-link:hover {
    color: #0b305b;
}

.contact-card {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    background: #e9ecef;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
    color: #2b5876;
}

.abuse-contact {
    border-left: 4px solid #dc3545;
}

.technical-contact {
    border-left: 4px solid #28a745;
}

.admin-contact {
    border-left: 4px solid #ffc107;
}


.exchange-point-card {
    background: white;
    border-left: 4px solid #2b5876;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.exchange-point-header {
    display: block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.exchange-point-name {
    font-weight: bold;
    color: #2b5876;
    margin-bottom: 0.5rem;
}

.exchange-point-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.ip-address-list {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.ip-address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.ip-address-item:last-child {
    border-bottom: none;
}

.ipv6-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 20px;
}

.ipv6-enabled {
    background-color: #28a745;
    color: white;
}

.ipv6-disabled {
    background-color: #dc3545;
    color: white;
}

th {
    cursor: pointer;
}


/* Wrapper for horizontal scroll */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Keep your original column widths */
/* #tableOne {
    min-width: 900px;
}

#tableOne th:nth-child(1) {
    width: 5%;
}

#tableOne th:nth-child(2) {
    width: 40%;
}

#tableOne th:nth-child(3) {
    width: 6%;
}

#tableOne th:nth-child(4) {
    width: 10%;
}

#tableOne th:nth-child(5) {
    width: 12%;
}

#tableOne th:nth-child(6) {
    width: 10%;
}

#tableOne th:nth-child(7) {
    width: 20%;
} */

.clickable-row {
    cursor: pointer !important;
}

.clickable-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.arches {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
}

.search-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-tag:hover {
    background: #0b305b;
    color: white;
    border-color: #0b305b;
    transform: translateY(-1px);
}

.search-tag i {
    font-size: 0.9em;
}

.tag-count {
    margin-left: 8px;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #6b7280;
}

.search-tag:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.legend-color {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 4px;
    vertical-align: middle;
}

.map-container {
    height: 500px;
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.popular-searches {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
}

.search-item:last-child {
    border-bottom: none;
}


#map {
    width: 100%;
    height: 600px;
}

.map-container {
    width: 100%;
    height: 600px;
    position: relative;
}




/* Index */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background: white;
    color: var(--primary);
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Features */
.features {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Stats */
.stats {
    background: var(--gray-light);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* CTA */
.cta {
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--gray-light);
}

/* Footer */
footer {
    background: var(--gray-dark);
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

.center {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--primary);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--primary-light);
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.google-logo {
    width: 20px;
    height: auto;
    margin-right: 8px;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0d6efd;
    margin-right: 1rem;
    width: 24px;
}

.contact-text {
    margin: 0;
}

/* Make single select look like multiple */
select.multi-style {
    height: auto;
    min-height: 38px;
    background-image: none;
    padding: 6px 12px;
}

/* Hide the default dropdown arrow */
select.multi-style::-ms-expand {
    display: none;
}

/* Add custom padding for better appearance */
select.multi-style option {
    padding: 10px;
}

.saved-search-card {
    transition: all 0.2s ease;
}

.saved-search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.empty-state {
    min-height: 300px;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.table-dark {
    background: var(--gray-dark);
}