/* Header Styles */
.header {
    background: #000000;
    border-bottom: 1px solid #333333;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(224, 27, 60, 0.35);
    cursor: pointer;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: url('../logo.png') no-repeat center center;
    background-size: contain;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #333333;
    font-size: 12px;
    font-family: monospace;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #666666;
    border-radius: 50%;
    transition: all 0.3s;
}

.status-dot.active,
.status-dot.connected {
    background: #66ff66;
    animation: pulse 2s infinite;
}

.status-dot.error {
    background: #ff6666;
}

/* Coming Soon Section */
.coming-soon-section {
    display: flex;
    gap: 8px;
    padding: 0 15px;
    border-left: 1px solid #333333;
    border-right: 1px solid #333333;
    margin: 0 10px;
}

.coming-soon-badge {
    font-size: 8px;
    background: #333333;
    color: #666666;
    padding: 2px 4px;
    border-radius: 2px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart Provider */
.chart-provider-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-label {
    font-size: 13px;
    color: #808080;
    font-family: monospace;
}

.chart-provider-btn {
    background: #000000;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 13px;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-provider-btn:hover {
    background: #1a1a1a;
    border-color: #ff3052;
}

#chartProviderName {
    font-weight: 600;
}

/* Social Links */
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999999;
    text-decoration: none;
    font-family: monospace;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #333333;
    background: #000000;
    transition: all 0.3s;
}

.social-link:hover {
    color: #ffffff;
    border-color: #ff3052;
    box-shadow: 0 0 5px rgba(224, 27, 60, 0.25);
}

.social-icon {
    font-size: 16px;
}

/* CA Display */
.ca-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #333333;
    font-family: monospace;
    font-size: 14px;
}

.ca-label {
    color: #808080;
}

.ca-address, .ca-copy {
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s;
}

.ca-address:hover, .ca-copy:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Main Content */
.main-container {
    padding: 20px;
    height: calc(100vh - 56px - 60px);
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Make main container scrollable */
}

.content-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.pulse-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    font-family: monospace;
}

.pulse-icon {
    width: 20px;
    height: 20px;
    background: #ff3052;
    animation: pulse 2s infinite;
}

.view-controls {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.view-btn {
    background: #000000;
    border: 1px solid #333333;
    color: #999999;
    padding: 6px 12px;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.3s;
}

.view-btn:hover {
    border-color: #ff3052;
    color: #ffffff;
}

/* Three Panel Layout */
.three-panel-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    height: calc(100% - 60px);
    flex: 1;
}

.panel {
    background: #000000;
    border: 1px solid #333333;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333333;
    flex-shrink: 0;
    position: relative;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 50px;
}

.panel-count {
    background: #1a1a1a;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d0d0d;
    border: 1px solid #333333;
    color: #808080;
    width: 32px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    background: #1a1a1a;
    border-color: #ff3052;
    color: #ffffff;
}

.filter-toggle-btn.active {
    background: #ff3052;
    color: #000000;
    border-color: #ff3052;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #ff3052;
    border: 1px solid #000000;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    box-shadow: 0 0 5px rgba(224, 27, 60, 0.35);
}

/* Filter Controls */
.filter-controls {
    background: #0d0d0d;
    border-top: 1px solid #333333;
    padding: 12px;
    display: none;
}

.filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-group label {
    font-size: 11px;
    color: #808080;
    font-family: monospace;
    min-width: 50px;
}

.filter-input {
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 3px 5px;
    font-size: 10px;
    font-family: monospace;
    width: 45px;
    border-radius: 2px;
}

.filter-input:focus {
    outline: none;
    border-color: #ff3052;
}

.filter-input::placeholder {
    color: #555555;
}

.filter-unit {
    font-size: 8px;
    color: #666666;
    font-family: monospace;
}

.filter-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.apply-filter-btn,
.clear-filter-btn {
    flex: 1;
    padding: 4px;
    font-size: 9px;
    font-family: monospace;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: 600;
}

.apply-filter-btn {
    background: #000000;
    border: 1px solid #ff3052;
    color: #ffffff;
}

.apply-filter-btn:hover {
    background: #ff3052;
    color: #000000;
}

.clear-filter-btn {
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #808080;
}

.clear-filter-btn:hover {
    border-color: #666666;
    color: #ffffff;
}

/* Bottom Controls */
.bottom-controls {
    background: #000000;
    border-top: 1px solid #333333;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 99;
}

.bottom-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #808080;
    font-size: 12px;
    font-family: monospace;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-ca {
    font-size: 12px;
    color: #808080;
    font-family: monospace;
}

.bottom-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #1a1a1a;
    border: 1px solid #333333;
    font-size: 12px;
    font-family: monospace;
    color: #808080;
}

.stat-value {
    color: #ffffff;
    font-weight: bold;
}

.stat-value-green {
    color: #66ff66;
    font-weight: bold;
}