@import url("styles.css");
/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at center, #1C2526 0%, #0D1117 100%);
    color: #F7FAFC;
    margin: 0;
    overflow-x: hidden;
}
.active{
    border-bottom: solid 2px #f3ba2f;
}
/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 256px;
    height: 100%;
    background: linear-gradient(180deg, #151923 0%, #0B0E14 100%);
    color: #F7FAFC;
    transition: transform 0.3s ease-in-out;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
i{
        width: 20px;
}
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar:not(.hidden) {
        transform: translateX(0);
        display: block;
    }
}
@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
        display: block;
    }
}
.sidebar.hidden {
    transform: translateX(-100%);
    display: none;
}
.sidebar-content {
    padding: 2rem;
}
.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F3BA2F;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-menu {
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #F7FAFC;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.sidebar-link:hover {
    background-color: #F3BA2F;
    color: #0D1117;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.sidebar-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.sidebar-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}
@media (min-width: 769px) {
    .sidebar-overlay {
        display: none;
    }
}

/* Main content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
}
@media (min-width: 769px) {
    .main-content {
        margin-left: 256px;
    }
}

/* Header */
.header {
    background: linear-gradient(90deg, #151923 0%, #0B0E14 100%);
    color: #F7FAFC;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #F3BA2F;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-toggle {
    background-color: #F3BA2F;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    color: #0D1117;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 25;
}
.sidebar-toggle:hover {
    background-color: #DAA520;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}
@media (min-width: 769px) {
    .sidebar-toggle {
        display: none;
    }
}

/* Input and buttons */
.input-container {
    padding: 1rem;
}
.input-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .input-group {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .token-input {
        grid-column: 1 / -1;
    }
    .network-btn {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        border: 1px solid red; /* Debug: Red border to confirm placement */
    }
    .audit-btn {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        border: 1px solid blue; /* Debug: Blue border to confirm placement */
    }
    .results-container{
        padding: 1rem !important;
    }
}
@media (min-width: 769px) {
    .input-group {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto;
    }
    .token-input {
        grid-column: 1 / 2;
    }
    .network-btn {
        grid-column: 2 / 3;
        border: none; /* Remove debug border on desktop */
    }
    .audit-btn {
        grid-column: 3 / 4;
        border: none; /* Remove debug border on desktop */
    }
}
.token-input {
    padding: 0.75rem;
    border: 1px solid #2D3748;
    border-radius: 0.5rem;
    background-color: #1C2526;
    color: #F7FAFC;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.token-input:focus {
    border-color: #F3BA2F;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.3);
    outline: none;
}
.network-btn, .audit-btn {
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: #0D1117;
    border: none;
    cursor: pointer;
    z-index: 15;
    background-color: #F3BA2F;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}
.network-btn:hover, .audit-btn:hover {
    background-color: #DAA520;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 30;
}
.popup.hidden {
    display: none;
}
.popup-content {
    background: linear-gradient(180deg, #151923 0%, #0B0E14 100%);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.popup-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #F3BA2F;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.network-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.network-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem;
    background-color: #1C2526;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    border: none;
    color: #F7FAFC;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.network-option:hover {
    background-color: #F3BA2F;
    color: #0D1117;
    box-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}
.network-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    border-radius: 100%;
}
.popup-close {
    margin-top: 1.25rem;
    padding: 0.75rem;
    background-color: #E53E3E;
    color: #F7FAFC;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.popup-close:hover {
    background-color: #C53030;
    box-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

/* Results */
.results-container {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(94deg, #171b1e 0%, #151923 100%);
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.results-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #F3BA2F;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section {
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #1C2526 0%, #151923 100%);
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #F3BA2F;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}
.section-title:hover {
    color: #DAA520;
}
.section-content {
    padding: 0.75rem;
}
.results-container p {
    margin: 0.75rem 0;
    line-height: 1.6;
    color: #F7FAFC;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.text-success {
    color: #48BB78;
}
.text-warning {
    color: #F56565;
}
.error {
    color: #E53E3E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
details[open] summary::after {
    content: '\f077';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
details summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
}
details summary {
    display: flex;
    align-items: center;
    cursor: pointer;
}