/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Main Container */
.container {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

/* Header */
h1 {
    color: #1877f2; /* Facebook Blue */
    text-align: center;
    font-size: 2em;
    margin-bottom: 24px;
}

/* Input Section */
.input-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

#walletAddress {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 1em;
}

#walletAddress:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

#fetchDataBtn {
    padding: 12px 24px;
    background-color: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s;
}

#fetchDataBtn:hover {
    background-color: #166fe5;
}

/* Dashboard Container */
.dashboard-container {
    margin-top: 20px;
}

/* LP Item Card */
.lp-item {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s;
}

.lp-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lp-item h3 {
    margin-top: 0;
    color: #00529B;
    font-size: 1.2em;
}

.lp-item p {
    margin: 8px 0;
    line-height: 1.6;
}

/* Profit and Loss indicators */
.profit {
    color: #42b72a; /* Green */
    font-weight: bold;
}

.loss {
    color: #fa383e; /* Red */
    font-weight: bold;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #1877f2;
    animation: spin 1s ease infinite;
    margin: 20px auto;
}

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