body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden; /* Prevent horizontal scrolling of container */
}

/* Header styles */
header {
    padding: 10px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    color: #0047ab;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nav-link {
    color: #0047ab;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 16px;
    border: 2px solid #0047ab;
    border-radius: 5px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #0047ab;
    color: #fff;
}

.lightning {
    color: #ffc107;
    margin-right: 5px;
}

/* Portfolio summary section with time filter */
.summary-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.portfolio-summary {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    flex: 1;
}

/* Gray, light text showing full amount with cents */
.portfolio-value {
    font-size: 2.8rem;
    color: #c0c0c6;
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* Add positive/negative styling for P/L */
.positive {
    color: #4CAF50; /* Green */
}

.negative {
    color: #F44336; /* Red */
}

/* Dark, bold text showing rounded billion value */
.portfolio-secondary {
    font-size: 4.2rem;
    color: #12141f;
    font-weight: 800;
    margin: 0 0 5px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Portfolio details container */
.portfolio-details {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

/* BTC balance: Medium gray text showing full BTC value */
.btc-amount {
    font-size: 2.5rem;
    color: #9a9aa8;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1;
}

/* Container for all price details */
.price-details-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

/* DCA price */
.price-dca {
    font-size: 1.1rem;
    color: #9a9aa8;
    margin-bottom: 5px;
}

/* Current price display under time filter */
.current-price-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.last-updated {
    font-size: 0.8rem;
    color: #777;
    margin-top: 3px;
}

/* Filter buttons */
.time-filter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 10px;
}

.time-filter-buttons {
    display: flex;
    justify-content: flex-end;
}

.time-filter button {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-left: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.time-filter button:hover {
    background-color: #3367d6;
}

.time-filter button.active {
    background-color: #1A73E8;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 30px 0;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Table styles */
.table-container {
    margin-top: 30px;
}

.transactions {
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

table th {
    background-color: #f5f5f5;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #ddd;
}

table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Community Footer Section */
.community-footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #ddd;
    text-align: center;
}

.community-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0047ab;
    margin-bottom: 15px;
}

.community-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.social-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.twitter {
    background-color: #000;
}

.social-icon.discord {
    background-color: #5865F2;
}

.social-icon.telegram {
    background-color: #0088cc;
}

.social-icon svg {
    width: 32px;
    height: 32px;
}

.social-icon.twitter svg {
    width: 45px;
    height: 45px;
}

.social-icon.telegram svg {
    width: 45px;
    height: 45px;
}

.social-icon.discord svg {
    width: 32px;
    height: 32px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 48px;
        height: 48px;
    }
    
    .social-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .social-icon.twitter svg {
        width: 40px;
        height: 40px;
    }
    
    .social-icon.telegram svg {
        width: 40px;
        height: 40px;
    }
    
    .social-icon.discord svg {
        width: 28px;
        height: 28px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .nav-link {
        align-self: flex-end;
    }
    
    .portfolio-value {
        font-size: 2rem;
    }
    
    .portfolio-secondary {
        font-size: 3rem;
    }
    
    .btc-amount {
        font-size: 1.8rem;
    }
    
    .summary-container {
        flex-direction: column;
    }
    
    .time-filter {
        margin-top: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-filter-buttons {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .time-filter button {
        margin-bottom: 5px;
        margin-left: 0;
        margin-right: 5px;
    }
    
    .current-price-container {
        align-items: flex-start;
        text-align: left;
        margin-top: 15px;
    }
    
    .time-filter button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    /* Mobile table scrolling */
    .transactions {
        overflow-x: auto;
        position: relative;
        padding: 0;
        margin: 0 -15px; /* Extend beyond container padding */
        width: calc(100% + 30px);
    }
    
    .transactions table {
        min-width: 700px; /* Ensure table is wide enough to need scrolling */
    }
    
    /* Keep table header visible */
    .transactions table thead th {
        background-color: #f5f5f5;
    }
}
