/* Main Plugin Styles */
.sovryn-zero-tracker .column {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: transparent;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sovryn-zero-tracker h2 {
    text-align: center;
    color: #FF6B00;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Table Styles */
.sovryn-zero-tracker table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
}

.sovryn-zero-tracker th {
    background-color: #FF6B00;
    color: #FFFFFF;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 8px;
    text-align: left;
}

.sovryn-zero-tracker td {
    border: 1px solid #2A2E4A;
    padding: 10px 8px;
    color: #D9D9D9;
    text-align: left;
}

/* Scrollbar and Table Layout Fix */
.sovryn-zero-tracker tbody {
    display: block;
    max-height: 462px; /* **THE CHANGE:** Approx height for 11 rows */
    overflow-y: auto;
}

.sovryn-zero-tracker thead, .sovryn-zero-tracker tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* Row Styles */
.sovryn-zero-tracker tr {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    background-color: #0B0F23;
}

.sovryn-zero-tracker tr:nth-child(even) {
    background-color: #12162B;
}

.sovryn-zero-tracker tr:hover {
    background-color: #2A2E4A;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: #00D2FF;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #00D2FF;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip for Zero Collateral */
.info-icon {
    cursor: help;
    font-style: normal;
    color: #00D2FF;
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.info-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00D2FF;
    color: #0B0F23;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s; /* Faster popup */
}

/* Show on hover for desktop and on tap/focus for mobile */
.info-icon:hover::after, .info-icon:focus::after {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* Instant popup on hover/tap */
}