.main-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.branding-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mascot-gif {
    height: 120px;
    width: auto;
    margin-bottom: 15px;
}

.swap-container {
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.swap-inputs-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.label-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.min-amount-error {
    color: #ff6b6b;
    font-size: 13px;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.exchange-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin-bottom: 29px;
    transition: transform 0.2s;
    height: 100%;
    min-height: 60px;
}

.exchange-icon:hover {
    transform: scale(1.1);
}

.exchange-icon span {
    display: block;
    font-size: 36px;
    color: #ffd700;
    font-weight: bold;
    user-select: none;
    line-height: 0.4;
    margin: 0;
    padding: 0;
}

.exchange-icon-static {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    margin-bottom: 29px;
    height: 100%;
    min-height: 60px;
}

.exchange-icon-static span {
    display: block;
    font-size: 36px;
    color: #ffd700;
    font-weight: bold;
    user-select: none;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.arrow-up {
    margin-bottom: -5px;
}

.arrow-down {
    margin-top: -5px;
}

.address-row {
    margin-top: 10px;
}

.full-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.button-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.simple-footer {
    margin-top: 120px;
    text-align: center;
    border-top: 1px solid;
    padding-top: 30px;
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-links-api {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-links-api a {
    opacity: 0.5;
}

.footer-links-api a:hover {
    opacity: 0.7;
}

.feedback-row {
    margin-top: 10px;
}

.swap-feedback {
    min-height: 24px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.swap-feedback.error {
    color: #ff6b6b;
}

.swap-feedback.success {
    color: #4caf50;
}

.swap-tracker {
    margin-top: 60px;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.exchange-id {
    font-size: 18px;
    font-weight: bold;
}

.copy-link-btn {
    padding: 8px 16px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid;
}

body.dark-theme .copy-link-btn {
    background-color: #1a1a1a;
    color: #dddddd;
    border-color: #444444;
}

body.light-theme .copy-link-btn {
    background-color: #ffffff;
    color: #333333;
    border-color: #cccccc;
}

.copy-link-btn:hover {
    opacity: 0.8;
}

.address-display {
    display: flex;
    min-width: 0;
    border: 1px solid;
    padding: 2px;
    margin-bottom: 10px;
}

body.dark-theme .address-display {
    border-color: #444444;
}

body.light-theme .address-display {
    border-color: #cccccc;
}

.address-text {
    flex: 1;
    min-width: 0;
    padding: 15px;
    font-family: "Courier New", Consolas, monospace;
    font-size: 14px;
    white-space: nowrap;
    overflow-x: auto;
    border-radius: 3px;
    cursor: text;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.address-text::-webkit-scrollbar {
    display: none;
}

body.dark-theme .address-text {
    background-color: #222222;
    color: #ffffff;
}

body.light-theme .address-text {
    background-color: #ffffff;
    color: #000000;
}

.copy-btn {
    padding: 0 20px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    border-radius: 0 3px 3px 0;
    border: none;
    border-left: 1px solid;
    font-weight: bold;
}

body.dark-theme .copy-btn {
    background-color: #222222;
    color: #ffffff;
    border-left-color: #444444;
}

body.light-theme .copy-btn {
    background-color: #ffffff;
    color: #000000;
    border-left-color: #cccccc;
}

.copy-btn:hover {
    opacity: 0.7;
}

.extra-memo {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 3px;
    font-size: 14px;
}

body.dark-theme .extra-memo {
    background-color: #1a1a1a;
    color: #ffb347;
}

body.light-theme .extra-memo {
    background-color: #fff3cd;
    color: #856404;
}

.qr-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid;
    border-radius: 3px;
}

body.dark-theme .qr-container {
    border-color: #444444;
    background-color: #1a1a1a;
}

body.light-theme .qr-container {
    border-color: #cccccc;
    background-color: #ffffff;
}

.qr-container canvas {
    width: 200px !important;
    height: 200px !important;
}

.exchange-details {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid;
    border-radius: 3px;
    transition: border-color 0.3s ease;
}

.exchange-details.finished {
    border-color: #4caf50 !important;
}

.swap-inputs-area.processing {
    opacity: 0.5 !important;
    pointer-events: none;
    transition: opacity 0.3s ease;
    filter: grayscale(20%);
}

body.dark-theme .exchange-details {
    border-color: #444444;
    background-color: #1a1a1a;
}

body.light-theme .exchange-details {
    border-color: #cccccc;
    background-color: #f9f9f9;
}

.exchange-details h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.detail-line {
    margin: 8px 0;
    font-size: 14px;
}

.detail-line span {
    font-weight: bold;
}

@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .exchange-icon {
        padding: 10px 0;
        transform: rotate(90deg);
    }
}
