@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.sovryn-tool {
    background-color: #0B0F23;
    color: #D9D9D9;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    border-radius: 8px; /* Rounded corners for the tool */
    overflow: hidden; /* Ensure rounded corners apply to content */
}

.sovryn-table-container {
    max-height: 400px; /* Adjusted for 20 rows (~20px per row) */
    overflow-y: scroll; /* Force scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    scrollbar-width: thin;
    scrollbar-color: #FF6B00 #2A2E4A;
    border: 1px solid #2A2E4A;
    border-radius: 8px; /* Rounded corners for the container */
    width: 100%; /* Ensure full width */
}

.sovryn-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.sovryn-table th {
    background: linear-gradient(90deg, #FFA500, #FF8C00) !important;
    color: #1a1a1a !important;
    padding: 10px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important; /* Higher z-index to stay above rows */
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    min-width: 0 !important; /* Allow tight fit */
    max-width: fit-content !important; /* Fit to longest content */
}

.sovryn-table td {
    padding: 8px !important;
    border-bottom: 1px solid #333 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
    min-width: 0 !important; /* Allow tight fit */
    max-width: fit-content !important; /* Fit to longest content */
}

.sovryn-table tr:nth-child(even) {
    background: #2a2a2a !important;
}

.sovryn-table tr:hover {
    background: linear-gradient(90deg, #2a2a2a, #3a3a3a) !important;
    transition: background 0.3s ease !important;
}

.address { font-family: 'Courier New', monospace !important; }

@media (max-width: 768px) {
    .sovryn-table th, .sovryn-table td {
        padding: 6px !important;
        font-size: 10px !important;
        min-width: 0 !important;
        max-width: fit-content !important;
    }
    .sovryn-table-container {
        max-height: 1000px !important; /* 2.5x taller for mobile */
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    .sovryn-tool {
        padding: 5px !important;
    }
}

/* Scrollbar styling */
.sovryn-table-container::-webkit-scrollbar {
    width: 6px !important;
}

.sovryn-table-container::-webkit-scrollbar-thumb {
    background: #FFA500 !important;
    border-radius: 3px !important;
}

.sovryn-table-container::-webkit-scrollbar-track {
    background: #2a2a2a !important;
}