* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #003366;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.market-hours {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 10px;
}

.market-hours p {
    margin: 5px 0;
    font-size: 14px;
    color: #003366;
    font-weight: 500;
}

.market-closed-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.market-closed-banner p {
    margin: 0;
    color: #856404;
    font-weight: 600;
    text-align: center;
}

.transaction-type {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.type-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #003366;
    background: white;
    color: #003366;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.type-btn.active {
    background: #003366;
    color: white;
}

.converter {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.input-group input,
.input-group select {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #003366;
}



.result {
    background: #003366;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

#resultDisplay {
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.rate-info {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.confirm-btn {
    width: 100%;
    padding: 18px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirm-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}

.show-rates-btn {
    width: 100%;
    padding: 18px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.show-rates-btn:hover {
    background: #004488;
    transform: translateY(-2px);
}

.disclaimer {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.disclaimer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #856404;
}

.hidden {
    display: none;
}

.loading-status {
    text-align: center;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    margin-top: 20px;
    color: #856404;
    font-weight: 600;
}

.loading-status .spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.success-status {
    text-align: center;
    padding: 15px;
    background: #d4edda;
    border-radius: 8px;
    margin-top: 20px;
    color: #155724;
    font-weight: 600;
    animation: fadeIn 0.5s;
}

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

.success-status span {
    font-size: 20px;
    margin-right: 5px;
}

.language-switcher {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.lang-divider {
    color: #ccc;
    font-size: 12px;
}

.lang-btn {
    padding: 5px 12px;
    background: transparent;
    border: none;
    outline: none;
    color: #999;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.lang-btn.active {
    background: transparent;
    border: none;
    outline: none;
    color: #003366;
}

.lang-btn:hover {
    color: #003366;
}

.lang-btn:focus {
    outline: none;
    border: none;
}
