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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2em;
    font-weight: 600;
}

.btn-notify {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-notify:hover {
    background: white;
    color: #667eea;
}

.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    background: #e8e8e8;
    color: #333;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.ranking-list {
    display: grid;
    gap: 15px;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ranking-item .rank {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
    min-width: 40px;
}

.ranking-item .name {
    flex: 1;
    font-size: 1.1em;
    font-weight: 500;
    margin-left: 15px;
}

.ranking-item .marketcap {
    font-size: 1.1em;
    font-weight: 600;
    color: #28a745;
    margin-right: 15px;
}

.ranking-item .percent-diff {
    font-size: 0.95em;
    font-weight: 500;
    color: #dc3545;
    background: #ffe6e6;
    padding: 4px 10px;
    border-radius: 4px;
}

.hourly-data {
    display: grid;
    gap: 20px;
}

.hour-block {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.hour-block h3 {
    margin-bottom: 15px;
    color: #667eea;
    font-size: 1.1em;
}

.hour-companies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.hour-company {
    padding: 10px;
    background: white;
    border-radius: 6px;
    font-size: 0.9em;
}

.trend-data {
    display: grid;
    gap: 20px;
}

.trend-company {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.trend-company h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.trend-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trend-point {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid #e0e0e0;
}

.forecast-data {
    display: grid;
    gap: 25px;
}

.forecast-day {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.forecast-day h3 {
    margin-bottom: 15px;
    color: #28a745;
    font-size: 1.2em;
}

.forecast-ranking {
    display: grid;
    gap: 10px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
}

.forecast-item .rank {
    font-weight: bold;
    color: #667eea;
    min-width: 30px;
}

.forecast-item .name {
    flex: 1;
    margin-left: 10px;
}

.forecast-item .marketcap {
    font-weight: 600;
    color: #28a745;
}

.alert-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.alert-banner.hidden {
    display: none;
}

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

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

