/* Currency Converter Specific Styles */

.summary-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.earnings-display {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.currency-box {
    padding: 1rem;
}

.currency-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    line-height: 1.2;
}

.currency-value.usd {
    color: var(--success-color);
}

.currency-value.converted {
    color: var(--primary-color);
}

.converter-form {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px dashed #d1d5db;
}

/* Currency search dropdown */
.currency-search-container {
    position: relative;
}

.currency-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.currency-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.currency-option:hover {
    background-color: #f8fafc;
}

.currency-option.highlighted {
    background-color: var(--primary-color);
    color: white;
}

.currency-option:hover .search-highlight,
.currency-option.highlighted .search-highlight {
    background-color: #fd7e14;
    color: #fff;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-name {
    font-weight: 600;
    color: var(--dark-color);
}

.currency-option.highlighted .currency-name {
    color: white;
}

.currency-code {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: monospace;
}

.currency-option.highlighted .currency-code {
    color: #e5e7eb;
}

.currency-symbol {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.currency-option.highlighted .currency-symbol {
    color: white;
}

.conversion-history {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.conversion-history h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.history-item:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.history-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.history-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.history-usd {
    color: var(--success-color);
}

.history-converted {
    color: var(--primary-color);
}

.history-rate {
    font-size: 0.875rem;
    color: #6b7280;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.conversion-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Loading state */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .summary-card {
        padding: 1.5rem;
    }
    
    .earnings-display {
        padding: 1.5rem;
    }
    
    .currency-value {
        font-size: 2rem;
    }
    
    .converter-form {
        padding: 1rem;
    }
    
    .preset-buttons {
        justify-content: center;
    }
    
    .preset-buttons .btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
    
    .conversion-history {
        padding: 1.5rem;
    }
    
    .history-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .conversion-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 576px) {
    .currency-value {
        font-size: 1.5rem;
    }
    
    .preset-buttons .btn {
        flex: 1;
        min-width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .earnings-display .row {
        gap: 1rem;
    }
    
    .currency-box {
        padding: 0.75rem;
        border-radius: 8px;
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .history-item {
        padding: 0.75rem;
    }
}

/* Animation for conversion result */
.conversion-result-enter {
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
    font-size: 0.875rem;
}