* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b1a30;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1100px;
}

/* Header */
.header {
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .icon {
    background-color: #00e5ff;
    color: #0b1a30;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 20px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.logo h1 {
    font-size: 24px;
    color: #00e5ff;
}

.subtitle {
    color: #8da2bb;
    font-size: 13px;
    margin-top: 5px;
}

/* Main Layout */
.main-content {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.converter-card, .rates-card {
    background-color: #122543;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.converter-card {
    flex: 1.5;
    min-width: 320px;
}

.rates-card {
    flex: 1;
    min-width: 300px;
    background-color: #0f203a;
}

/* Typography */
h2 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

label {
    font-size: 11px;
    color: #8da2bb;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

/* Input Fields */
.input-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    background-color: #16325c;
    border: 2px solid #204b83;
    border-radius: 10px;
    padding: 15px;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    outline: none;
    transition: border 0.3s;
}

.input-wrapper input:focus {
    border-color: #00e5ff;
}

.currency-badge {
    position: absolute;
    right: 15px;
    color: #8da2bb;
    font-weight: bold;
}

/* Dropdowns */
.select-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.select-group {
    flex: 1;
}

select {
    width: 100%;
    background-color: #16325c;
    border: 1px solid #204b83;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    outline: none;
    cursor: pointer;
}

.swap-circle {
    width: 16px;
    height: 16px;
    background-color: #204b83;
    border-radius: 50%;
    margin-top: 20px;
}

/* Result Box */
.result-box {
    background-color: #173d6f;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    margin-bottom: 25px;
}

.result-title {
    font-size: 12px;
    color: #a4b9d4;
    margin-bottom: 5px;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.inverse-rate {
    font-size: 11px;
    color: #a4b9d4;
    margin-top: 5px;
}

.copy-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1f4e87;
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.copy-btn:hover {
    background-color: #2864ab;
}

/* Action Buttons */
.convert-btn {
    width: 100%;
    background-color: #49f3ff;
    color: #0b1a30;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.convert-btn:hover {
    background-color: #00e5ff;
}

/* Rates Panel (Right Side) */
.rates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.rates-header h3 {
    font-size: 14px;
    color: #00e5ff;
}

.rates-header .time {
    font-size: 12px;
    color: #8da2bb;
}

.rates-subtitle {
    font-size: 11px;
    color: #8da2bb;
    margin-bottom: 20px;
    line-height: 1.4;
}

.rate-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rate-item {
    display: flex;
    align-items: center;
    background-color: #132849;
    padding: 12px 15px;
    border-radius: 10px;
}

.coin-name {
    background-color: #1c3661;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}

.coin-info {
    margin-left: 15px;
    flex: 1;
}

.coin-info .pair {
    display: block;
    font-size: 13px;
    font-weight: bold;
}

.coin-info .sub {
    font-size: 10px;
    color: #8da2bb;
}

.coin-value {
    text-align: right;
}

.coin-value .price {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.coin-value .trend.up {
    font-size: 10px;
    color: #00ff88;
}

/* Facts Box */
.fact-box {
    margin-top: 25px;
    font-size: 11px;
    color: #8da2bb;
    line-height: 1.5;
    border-top: 1px solid #1c3661;
    padding-top: 15px;
}

.fact-box strong {
    color: #ffcc00;
}