/* Only gray colors for styling */
header h1 {
    color: red !important;
}

.color-header {
    color: #ffffff;
    background-color: #444444;
    font-weight: bold;
}

.color-total {
    color: #ffffff;
    background-color: #333333;
    font-weight: bold;
}

.color-light-gray {
    color: #aaaaaa;
}

.color-dark-gray {
    color: #666666;
}

/* Layout improvements */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
    padding: 1rem 0;
}

/* Table styles */
.validator-cell {
    font-family: monospace;
    word-break: break-all;
}

.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

textarea.form-control {
    font-family: monospace;
    min-height: 200px;
}

/* Loading spinner */
.spinner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    text-align: center;
}

#loading-details {
    margin-top: 1rem;
    max-width: 80%;
}

/* Custom toast position */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

/* Language switcher */
.lang-switch {
    cursor: pointer;
    text-decoration: none;
    margin-left: 10px;
}

.lang-switch.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Custom Bootstrap overrides for better dark theme */
.card {
    background-color: #2a2a2a;
    border-color: #444;
}

/* Error alert styling */
.alert-danger {
    background-color: rgba(153, 153, 153, 0.15); 
    border-color: rgba(102, 102, 102, 0.4);
    color: #cccccc;
}

.form-control, .form-select {
    background-color: #333;
    border-color: #444;
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #666666;
}

.form-control::placeholder {
    color: #aaa;
}

/* Custom subtle color classes */
.bg-dark-subtle {
    background-color: #252525 !important;
}

/* Стили для ячеек рейтинга */
.rating-cell {
    font-weight: bold;
    color: #ffd700 !important;
    text-align: center;
    background-color: #2a2a2a !important;
    width: 5ch !important;
    min-width: 5ch !important;
    max-width: 5ch !important;
}

/* Стили для столбца AVG */
.avg-cell {
    width: 6ch !important;
    min-width: 6ch !important;
    max-width: 6ch !important;
    text-align: center;
}

/* Стили для столбца TOTAL */
.total-cell {
    width: 5ch !important;
    min-width: 5ch !important;
    max-width: 5ch !important;
    text-align: center;
    font-weight: bold;
}

/* Улучшить видимость рейтинга */
.rating-cell:hover {
    background-color: #3a3a3a !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.epoch-timeline-cell:hover {
    background-color: #3a3a3a !important;
    color: #74c0fc !important;
}

/* Стили для отображения курса Dash */
#dash-price-container {
    font-size: 0.9em;
    background: rgba(255, 193, 7, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

#dash-price {
    color: #ffc107;
    font-weight: bold;
}

/* Стили для всплывающих подсказок (tooltip) */
.tooltip {
    --bs-tooltip-bg: #444;
    --bs-tooltip-color: #fff;
}

.tooltip .tooltip-inner {
    background-color: #444 !important;
    color: #fff !important;
    border: 2px solid #666 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    font-weight: 500 !important;
}

.tooltip .tooltip-arrow::before {
    border-top-color: #666 !important;
    border-width: 7px !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #666 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #666 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #666 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #666 !important;
}

/* Улучшенные стили для ячеек с tooltip */
.block-value, .tfoot-block-value {
    cursor: help !important;
    display: inline-block !important;
    padding: 3px 6px !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
}

.block-value:hover, .tfoot-block-value:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .validator-cell {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .rating-cell,
    .avg-cell,
    .total-cell {
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
    }
}