/* Base styles */
.gembit-tvl-table-container {
    direction: rtl;
    text-align: right;
    margin: 20px 0;
    font-family: inherit;
    position: relative;
}

.gembit-tvl-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    font-family: inherit;
}

.gembit-tvl-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: right;
    font-weight: 700;
    border-bottom: 2px solid #dee2e6;
    font-family: inherit;
}

.gembit-tvl-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    font-family: inherit;
    cursor: pointer;
}

.gembit-tvl-table tr:last-child td {
    border-bottom: none;
}

.gembit-tvl-table tr.tvl-positive {
    background-color: rgba(40, 167, 69, 0.1);
}

.gembit-tvl-table tr.tvl-negative {
    background-color: rgba(220, 53, 69, 0.1);
}

.gembit-tvl-table img {
    margin-left: 10px;
    vertical-align: middle;
}

.tvl-valuable {
    color: #28a745;
    font-weight: bold;
}

.tvl-fair {
    color: #ffc107;
    font-weight: bold;
}

.tvl-overvalued {
    color: #dc3545;
    font-weight: bold;
}

.tvl-no-mcap {
    color: #6c757d;
    font-weight: bold;
}

.tvl-change-positive {
    color: #28a745;
}

.tvl-change-negative {
    color: #dc3545;
}

.tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    line-height: 1.5;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.tvl-error {
    color: #dc3545;
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-family: inherit;
}

.gembit-tvl-update-info {
    text-align: left;
    direction: ltr;
    color: #666;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.gembit-tvl-update-info > div {
    margin: 5px 0;
}

.countdown-timer {
    font-weight: bold;
    color: #0073aa;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .tooltip {
        max-width: 500px;
    }
}

@media (max-width: 782px) {
    .gembit-tvl-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .gembit-tvl-table th,
    .gembit-tvl-table td {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .tooltip {
        max-width: 400px;
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .gembit-tvl-update-info {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tooltip {
        max-width: 300px;
        font-size: 12px;
        padding: 8px 10px;
    }
}