/* ═══════════════════ WHALE WIDGET STYLES - MATRIX THEME ═══════════════════ */

#whaleWidgetContainer {
    background: linear-gradient(135deg, rgba(0, 20, 0, 0.98), rgba(0, 40, 0, 0.95));
    border: 2px solid #00aa00;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 30px rgba(0, 50, 0, 0.4);
    min-height: 120px;
}

#whaleWidgetContainer:hover {
    border-color: #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4), inset 0 0 40px rgba(0, 80, 0, 0.5);
}

.whale-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.whale-widget-header h3 {
    margin: 0;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.whale-widget-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whale-widget-actions .whale-filters-inline {
    margin-right: 8px;
}

.whale-manage-btn {
    background: linear-gradient(135deg, rgba(0, 80, 0, 0.8), rgba(0, 120, 0, 0.6));
    border: 1px solid #00aa00;
    color: #00ff00;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.whale-manage-btn:hover {
    background: linear-gradient(135deg, rgba(0, 120, 0, 0.9), rgba(0, 180, 0, 0.7));
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

#whaleAlertBadge {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: none;
    animation: badgePulse 1s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5), 0 0 30px rgba(255, 0, 0, 0.3);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.whale-filters {
    display: none;
}

.whale-filters-inline {
    display: flex;
    gap: 6px;
    align-items: center;
}

.whale-filter-btn {
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid #00aa00;
    color: #00aa00;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whale-filter-btn:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: #00ff00;
    color: #00ff00;
}

.whale-filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.8), rgba(0, 150, 0, 0.6));
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2), inset 0 0 8px rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.5);
}

.whale-alerts-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.whale-alerts-list::-webkit-scrollbar {
    width: 16px;
}

.whale-alerts-list::-webkit-scrollbar-track {
    background: rgba(0, 30, 0, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 100, 0, 0.3);
}

.whale-alerts-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #004400, #006600);
    border-radius: 8px;
    border: 1px solid rgba(0, 80, 0, 0.5);
}

.whale-alerts-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00aa00, #00ff00);
}

.whale-alert-item {
    background: rgba(0, 30, 0, 0.8);
    border-left: 3px solid #00aa00;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.whale-alert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.whale-alert-item:hover {
    background: rgba(0, 60, 0, 0.85);
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.whale-alert-item:hover::before {
    left: 100%;
}

.whale-alert-item.long {
    border-left-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}

.whale-alert-item.short {
    border-left-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.1);
}

.whale-alert-item.whale {
    border-left-width: 4px;
    background: linear-gradient(90deg, rgba(0, 60, 0, 0.9), rgba(0, 40, 0, 0.7));
    border-left-color: #ffd700;
}

.whale-alert-item.whale.long {
    border-left-color: #ffd700;
}

.whale-alert-item.whale.short {
    border-left-color: #ff6b6b;
}

.whale-alert-item.read {
    opacity: 0.5;
}

.whale-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.whale-symbol {
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    color: #00ff00;
}

.whale-time {
    font-size: 11px;
    color: #888;
}

.whale-alert-body {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
}

.whale-side {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    font-family: 'Share Tech Mono', monospace;
}

.whale-side.long {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.25), rgba(0, 200, 0, 0.15));
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.5);
}

.whale-side.short {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.25), rgba(200, 50, 50, 0.15));
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.5);
}

.whale-type {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: 'Share Tech Mono', monospace;
}

.whale-type.whale {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 180, 0, 0.2));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.whale-type.large {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.3), rgba(0, 120, 200, 0.2));
    color: #00aaff;
    border: 1px solid rgba(0, 170, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
}

.whale-price {
    color: #00ff00;
    font-weight: bold;
}

.whale-size {
    color: #aaa;
}

.whale-percentile.whale {
    color: #ff6b6b;
}

.whale-percentile.large {
    color: #4ecdc4;
}

.whale-widget-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.whale-mark-all-read {
    background: transparent;
    border: 1px solid rgba(0, 170, 0, 0.5);
    color: #00aa00;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.whale-mark-all-read:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.whale-exchange {
    font-size: 10px;
    color: #666;
    background: rgba(0, 20, 0, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

.whale-usd {
    color: #00ff00;
    font-weight: bold;
}

.whale-price-summary {
    font-size: 11px;
    color: #888;
    padding: 8px 12px;
    background: rgba(0, 20, 0, 0.4);
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: 'Share Tech Mono', monospace;
}

.whale-view-all {
    background: none;
    border: none;
    color: #00aa00;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.whale-view-all:hover {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.no-alerts {
    text-align: center;
    padding: 40px 20px;
    color: #00aa00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    background: rgba(0, 20, 0, 0.5);
    border-radius: 8px;
    border: 1px dashed rgba(0, 255, 0, 0.2);
}

/* ═══════════════════ WHALE CONFIG MODAL ═══════════════════ */

.whale-settings-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.whale-settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.whale-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.whale-settings-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
}

.whale-settings-icon {
    font-size: 16px;
}

.whale-threshold-select {
    background: rgba(0, 10, 0, 0.9);
    border: 1px solid #00aa00;
    color: #00ff00;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.whale-threshold-select:hover {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.whale-threshold-select:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.whale-threshold-select option {
    background: #001100;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
}

.whale-favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.whale-favorites-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.whale-favorites-header-main h4 {
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whale-favorites-header-main h4 svg {
    stroke: currentColor;
    fill: none;
}

.whale-favorites-count {
    color: #888;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
}

.whale-btn-add {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.8), rgba(0, 150, 0, 0.6));
    border: 1px solid #00aa00;
    color: #00ff00;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whale-btn-add:hover {
    background: linear-gradient(135deg, rgba(0, 150, 0, 0.9), rgba(0, 200, 0, 0.7));
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.whale-btn-add svg {
    stroke: currentColor;
    fill: none;
}

.whale-add-favorite-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.whale-symbol-input {
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid #00aa00;
    color: #00ff00;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
    text-transform: uppercase;
}

.whale-symbol-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.whale-symbol-input::placeholder {
    color: #555;
    text-transform: none;
}

.whale-exchange-select {
    background: rgba(0, 20, 0, 0.9);
    border: 1px solid #00aa00;
    color: #00ff00;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
}

.whale-btn-confirm {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.8), rgba(0, 150, 0, 0.6));
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whale-btn-confirm:hover {
    background: linear-gradient(135deg, rgba(0, 150, 0, 0.9), rgba(0, 200, 0, 0.7));
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.whale-btn-confirm svg {
    stroke: currentColor;
    fill: none;
}

.whale-btn-cancel {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #aa0000;
    color: #ff4444;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whale-btn-cancel:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: #ff4444;
    color: #ff4444;
}

.whale-btn-cancel svg {
    stroke: currentColor;
    fill: none;
}

.whale-symbol-input-container {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.whale-symbol-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 20, 0, 0.98);
    border: 1px solid #00aa00;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.whale-symbol-suggestions.active {
    display: block;
}

.whale-symbol-suggestions::-webkit-scrollbar {
    width: 10px;
}

.whale-symbol-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 20, 0, 0.6);
}

.whale-symbol-suggestions::-webkit-scrollbar-thumb {
    background: #004400;
    border-radius: 5px;
}

.whale-symbol-suggestions::-webkit-scrollbar-thumb:hover {
    background: #00aa00;
}

.whale-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    transition: all 0.15s ease;
}

.whale-suggestion-item:hover,
.whale-suggestion-item.selected {
    background: rgba(0, 100, 0, 0.4);
}

.whale-suggestion-item:last-child {
    border-bottom: none;
}

.whale-suggestion-symbol {
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    font-size: 13px;
}

.whale-suggestion-type {
    font-size: 10px;
    color: #888;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 50, 0, 0.5);
}

.whale-suggestion-type.favorite {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.whale-suggestion-type.active {
    background: rgba(0, 170, 255, 0.2);
    color: #00aaff;
}

.whale-no-suggestions {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

.whale-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.whale-favorites-grid::-webkit-scrollbar {
    width: 12px;
}

.whale-favorites-grid::-webkit-scrollbar-track {
    background: rgba(0, 30, 0, 0.6);
    border-radius: 6px;
}

.whale-favorites-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #004400, #006600);
    border-radius: 6px;
}

.whale-favorite-item {
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.whale-favorite-item:hover {
    background: rgba(0, 40, 0, 0.7);
    border-color: rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}

.whale-favorite-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.whale-favorite-symbol {
    font-weight: bold;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
}

.whale-favorite-select {
    min-width: 80px;
    padding: 6px 8px;
    font-size: 11px;
}

.whale-favorite-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.whale-btn-delete-favorite {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.5);
    color: #ff4444;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.whale-btn-delete-favorite:hover {
    background: rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.whale-btn-delete-favorite svg {
    stroke: currentColor;
}

.whale-config-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    margin-top: 20px;
}

.whale-config-actions {
    display: flex;
    gap: 10px;
}

.whale-btn-save {
    background: linear-gradient(135deg, #004400, #006600);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whale-btn-save:hover {
    background: linear-gradient(135deg, #006600, #008800);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.whale-btn-save svg {
    stroke: currentColor;
    fill: none;
}

.whale-btn-history {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00aa00;
    color: #00aa00;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whale-btn-history:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.whale-btn-history svg {
    stroke: currentColor;
    fill: none;
}

.whale-btn-save:hover {
    background: linear-gradient(135deg, #006600, #008800);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.whale-btn-history {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00aa00;
    color: #00aa00;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.whale-btn-history:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

/* ═══════════════════ WHALE MODAL - MATRIX THEME ═══════════════════ */

.whale-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: auto;
}

.whale-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.whale-modal {
    background: #001100;
    border: 2px solid #00ff00;
    border-radius: 12px;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4), 0 0 60px rgba(0, 255, 0, 0.2);
    position: relative;
    z-index: 10051;
}

.whale-modal-overlay.active .whale-modal {
    transform: scale(1);
}

.whale-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 20, 0, 0.5);
    flex-shrink: 0;
}

.whale-modal-header h2 {
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.whale-modal-close {
    background: transparent;
    border: none;
    color: #00ff00;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    opacity: 0.7;
}

.whale-modal-close:hover {
    background: rgba(0, 255, 0, 0.1);
    opacity: 1;
}

.whale-modal-close svg {
    stroke: currentColor;
    fill: none;
}

.whale-modal-body {
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-height: 70vh;
    color: #00ff00;
    font-family: 'Share Tech Mono', monospace;
}

/* Info box */
.whale-info-box {
    background: rgba(0, 40, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.whale-info-box p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #00aa00;
    line-height: 1.5;
}

.whale-info-box p:last-child {
    margin-bottom: 0;
}

.whale-info-box strong {
    color: #00ff00;
}

.whale-info-box a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.2s;
}

.whale-info-box a:hover {
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
    text-decoration: underline;
}

/* Favorites list */
.whale-favorites-list {
    margin-top: 16px;
}

.whale-favorite-item {
    background: rgba(0, 20, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.whale-favorite-item:hover {
    background: rgba(0, 40, 0, 0.7);
    border-color: rgba(0, 255, 0, 0.4);
}

.whale-favorite-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whale-favorite-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whale-favorite-symbol {
    font-weight: bold;
    color: #00ff00;
    font-size: 14px;
}

.whale-favorite-exchange {
    background: rgba(0, 20, 0, 0.8);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #888;
    border: 1px solid rgba(0, 100, 0, 0.3);
}

.whale-favorite-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whale-alert-threshold {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.whale-status-badge {
    background: rgba(0, 50, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #888;
    border: 1px solid rgba(0, 100, 0, 0.3);
}

.whale-status-badge.active {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
    border-color: rgba(0, 255, 0, 0.4);
}

.whale-favorite-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
}

.whale-btn-edit,
.whale-btn-delete {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid rgba(0, 100, 0, 0.5);
    color: #00aa00;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.whale-btn-edit:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: #00ff00;
    color: #00ff00;
}

.whale-btn-delete:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: #ff4444;
    color: #ff4444;
}

/* No favorites */
.no-favorites {
    text-align: center;
    padding: 40px 20px;
    color: #00aa00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    background: rgba(0, 20, 0, 0.5);
    border-radius: 8px;
    border: 1px dashed rgba(0, 255, 0, 0.2);
}

.no-favorites .hint {
    color: #666;
    font-size: 12px;
    margin-top: 10px;
}

.no-favorites p {
    margin: 0 0 10px 0;
    font-size: 13px;
}

.no-favorites .hint {
    font-size: 12px;
    color: #555;
}

.no-favorites a {
    color: #00aa00;
    text-decoration: none;
}

.no-favorites a:hover {
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

/* History modal */
.whale-history-item {
    background: rgba(0, 20, 0, 0.6);
    border-left: 3px solid #00aa00;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.whale-history-item:hover {
    background: rgba(0, 40, 0, 0.7);
}

.whale-history-item.ask {
    border-left-color: #ff4444;
}

.whale-history-item.bid {
    border-left-color: #00ff00;
}

.whale-history-item.whale {
    border-left-width: 4px;
    background: rgba(0, 40, 0, 0.7);
}

.whale-history-item.read {
    opacity: 0.5;
}

.whale-history-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.whale-history-body {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
}

.whale-history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.whale-history-pagination button {
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid #00aa00;
    color: #00aa00;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
}

.whale-history-pagination button:hover:not(:disabled) {
    background: rgba(0, 255, 0, 0.15);
    border-color: #00ff00;
    color: #00ff00;
}

.whale-history-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.whale-page-info {
    color: #888;
    font-size: 12px;
}

.whale-mark-all-read {
    background: none;
    border: none;
    color: #00aa00;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.2s;
}

.whale-mark-all-read:hover {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Notifications */
.whale-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whale-notification {
    background: rgba(0, 30, 0, 0.95);
    color: #00ff00;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid #00ff00;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.whale-notification.error {
    border-left-color: #ff4444;
    background: rgba(30, 0, 0, 0.95);
    color: #ff4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal sizes */
.whale-modal-sm { width: 400px; }
.whale-modal-md { width: 600px; }
.whale-modal-lg { width: 700px; }
.whale-modal-xl { width: 900px; }

/* Responsive */
@media (max-width: 768px) {
    .whale-modal {
        width: 95vw;
        max-height: 85vh;
    }

    .whale-modal-lg,
    .whale-modal-xl {
        width: 95vw;
    }

    .whale-modal-md {
        width: 95vw;
    }
}
    .whale-modal {
        width: 95%;
        padding: 12px;
    }

    .whale-modal-header h2 {
        font-size: 16px;
    }

    .whale-favorite-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .whale-favorite-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .whale-alert-body {
        gap: 6px;
    }

    .whale-history-body {
        gap: 6px;
    }
}
