/* Additional styles for trade page */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 31, 58, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(143, 148, 251, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.trade-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px; /* Added top padding to account for fixed header */
}

.swap-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .swap-container {
        grid-template-columns: 1fr;
    }
}

.swap-box {
    background: rgba(30, 40, 70, 0.4);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(143, 148, 251, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.swap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.swap-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--highlight);
}

.swap-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-light);
}

.balance {
    cursor: pointer;
    font-size: 0.9rem;
}

.input-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.input-container:focus-within {
    border-color: var(--highlight);
    box-shadow: 0 0 0 2px rgba(0, 209, 255, 0.2);
}

.token-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.1rem; /* Reduced from 1.5rem */
    font-weight: 500;
    outline: none;
    padding: 5px 0;
}

.token-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.token-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.token-selector:hover {
    background: rgba(255, 255, 255, 0.15);
}

.token-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #7a7dbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.token-symbol {
    font-weight: 600;
    font-size: 0.95rem; /* Adjusted font size */
}

.swap-button {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.swap-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.4);
}

.swap-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 84, 200, 0.4);
}

.swap-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.switch-tokens {
    display: flex;
    justify-content: center;
    margin: -10px 0;
}

.switch-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(78, 84, 200, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.switch-button:hover {
    background: rgba(78, 84, 200, 0.3);
    transform: rotate(180deg);
}

.token-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.token-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.token-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #7a7dbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.token-item-info {
    display: flex;
    flex-direction: column;
}

.token-item-symbol {
    font-weight: 600;
    font-size: 1rem;
}

.token-item-name {
    font-size: 0.8rem;
    color: var(--text-light);
}

.loading {
    display: flex;
    justify-content: center;
    padding: 20px;
    color: var(--highlight);
}

.error-message {
    color: #ff6b6b;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

.connect-wallet-prompt {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin: 20px 0;
}

.connect-wallet-prompt p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.wallet-connected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(0, 209, 255, 0.1);
    border-radius: 12px;
    font-weight: 500;
}

.wallet-address {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Signal styles */
.signals-dashboard {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signals-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination-container {
    background: white;
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.rsi-extreme-discount {
    background-color: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.rsi-reversal {
    background-color: #fcc419;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.rsi-support {
    background-color: #339af0;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.rsi-accumulation {
    background-color: #51cf66;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.rsi-high {
    background-color: #9775fa;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}
.zone-reversal {
    background-color: #fcc419;
    color: #000;
}
.zone-extreme-discount {
    background-color: #ff6b6b;
    color: white;
}
.zone-ath {
    background-color: #9775fa;
    color: white;
}
.zone-strong-support {
    background-color: #339af0;
    color: white;
}
.zone-accumulation {
    background-color: #51cf66;
    color: white;
}
.zone-badge {
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
}
.fa-spin {
    animation: fa-spin 2s infinite linear;
}
@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.error-message {
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}