* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #00ff88;
}

.search-section {
    position: relative;
    margin-bottom: 30px;
}

#cryptoSearch {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #2d2d2d;
    color: #fff;
    font-size: 16px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d2d2d;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:hover {
    background: #3d3d3d;
}

.selected-crypto {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.wallets-section {
    flex: 1;
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

#walletsList {
    flex: 1;
    overflow-y: auto;
}

.wallet-item {
    background: #3d3d3d;
    margin: 5px 0;
    padding: 12px;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 0.2fr 1fr 1fr;
    gap: 10px;
    font-size: 14px;
}

.transaction-buy {
    color: #00ff88;
}

.transaction-sell {
    color: #ff4444;
}

.amount {
    font-weight: bold;
}

.wallet-address {
    font-family: monospace;
    color: #888;
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.sentiment-chart {
    background: #3d3d3d;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sentiment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.chart-container {
    position: relative;
    width: 150px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pie-chart {
    transform: rotate(-90deg);
    width: 100px;
    height: 100px;
}

.pie-segment {
    transition: stroke-dasharray 0.3s ease;
    transform-origin: center;
}

#sellSegment {
    stroke-dasharray: 0 251.2;  /* Initial state */
}

#buySegment {
    stroke-dasharray: 0 251.2;  /* Initial state */
}

.percentage-labels {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    width: 100%;
}

.label-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.color-indicator.buy {
    background: #00ff88;
}

.color-indicator.sell {
    background: #ff4444;
}

.wallet-headers {
    display: grid;
    grid-template-columns: 0.2fr 1fr 1fr;
    gap: 10px;
    padding: 12px;
    font-weight: bold;
    color: #00ff88;
    border-bottom: 1px solid #4d4d4d;
    margin-bottom: 10px;
}

.refresh-button {
    background: #00ff88;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.refresh-button:hover {
    background: #00cc6a;
}

.refresh-button svg {
    width: 16px;
    height: 16px;
}

.refresh-button.spinning svg {
    animation: spin 1s linear infinite;
}

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

.last-update {
    font-size: 12px;
    color: #888;
}

@media (max-height: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        margin-bottom: 15px;
    }
    
    .search-section {
        margin-bottom: 15px;
    }
    
    .selected-crypto {
        margin-bottom: 15px;
        padding: 15px;
    }
}