/* Currency Converter - Modern SaaS Design */

.currency-converter-tool {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.converter-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* Currency Input Section */
.currency-input-section {
    margin-bottom: 20px;
}

.currency-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-input-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: start;
}

.currency-input-group input {
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.2s ease;
    background: #ffffff;
}

.currency-input-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.currency-input-group input[readonly] {
    background: #f8fafc;
    color: #6366f1;
    font-weight: 700;
    font-size: 20px;
    cursor: default;
}

.currency-input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.currency-input-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.currency-input-group select:hover {
    border-color: #d1d5db;
}

.currency-input-group select optgroup {
    font-weight: 700;
    font-size: 12px;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    background: #f8fafc;
}

.currency-input-group select option {
    padding: 10px 12px;
    font-weight: 500;
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .currency-input-group select {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* Swap Button */
.swap-section {
    text-align: center;
    margin: 12px 0;
}

.swap-btn {
    width: 48px;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.swap-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    transform: rotate(180deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.swap-btn:active {
    transform: rotate(180deg) scale(0.95);
}

/* Exchange Rate Display */
.exchange-rate-display {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.rate-info-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rate-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-value {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.copy-rate-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-rate-btn:hover {
    background: #6366f1;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.copy-rate-btn.copied {
    background: #10b981;
    border-color: #10b981;
}

/* Responsive Design */
@media (max-width: 640px) {
    .converter-container {
        padding: 24px;
    }

    .currency-input-group {
        grid-template-columns: 1fr;
    }
    
    .currency-input-group input {
        font-size: 16px;
    }
    
    .currency-input-group input[readonly] {
        font-size: 18px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.exchange-rate-display {
    animation: fadeIn 0.3s ease;
}

/* Input placeholder */
input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Focus states */
input:focus,
select:focus {
    outline: none;
}

/* Smooth transitions */
* {
    box-sizing: border-box;
}


