body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

h1 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 30px;
}

.calculator-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

h2 {
    color: #4a5568;
    margin-bottom: 20px;
}

.input-group, .result-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.price-input-group {
    flex: 2;
    display: flex;
    gap: 8px;
}

.price-input-group input {
    flex: 1;
}

label {
    flex: 1;
    margin-right: 10px;
    color: #4a5568;
}

input {
    flex: 2;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66,153,225,0.2);
}

select {
    flex: 2;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66,153,225,0.2);
}

.currency-select {
    background-color: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 8px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 10px;
}

.currency-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66,153,225,0.2);
}

.result-group span {
    flex: 2;
    padding: 8px;
    background-color: #edf2f7;
    border-radius: 4px;
    color: #2d3748;
    font-weight: bold;
}

button {
    background-color: #4299e1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.update-button {
    background-color: #4299e1;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.update-button:hover {
    background-color: #3182ce;
}

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

button:hover {
    background-color: #3182ce;
}

.transactions-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.transactions-section h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

.transactions-list {
    max-height: 200px;
    overflow-y: auto;
}

.transaction-item {
    padding: 15px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.transaction-item .amount {
    color: #e53e3e;
    font-weight: bold;
}

.transaction-item .xrp {
    color: #2b6cb0;
    font-weight: bold;
}

.transaction-item .price {
    color: #38a169;
    font-weight: bold;
}

.transaction-item .timestamp {
    color: #718096;
    font-size: 12px;
}

.search-container {
    flex: 2;
    position: relative;
}

.crypto-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 16px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-item:hover {
    background-color: #f7fafc;
}

.crypto-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.awesomplete {
    width: 100%;
}

.awesomplete > ul {
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #2d3748;
}

.awesomplete > ul > li {
    padding: 8px 12px;
    cursor: pointer;
    color: #2d3748;
}

.awesomplete > ul > li:hover {
    background-color: #f7fafc;
    color: #1a202c;
}

.awesomplete mark {
    background: #e2e8f0;
    color: #2d3748;
    border-radius: 2px;
    padding: 0 2px;
}

.awesomplete li:hover mark {
    background: #cbd5e0;
}

/* Add specific styles for dynamic currency labels */
.dynamic-currency {
    font-weight: bold;
    color: #2d3748;
}

.clear-button {
    background-color: #e53e3e;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    width: auto;
}

.clear-button:hover {
    background-color: #c53030;
}

@media (max-width: 600px) {
    .input-group, .result-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    label {
        margin-bottom: 5px;
    }
    
    input, .result-group span, select {
        width: 100%;
    }
}

#estimatedCoins {
    color: #2b6cb0;
    font-weight: bold;
}

#estimatedFutureValue {
    color: #38a169;
    font-weight: bold;
}