/* BRIDGE PAGE - REBUILT FROM SCRATCH */

/* Container */
.container {
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 174, 230, 0.15) 0%, transparent 50%),
        #0a0e1a;
    min-height: 100vh;
    position: relative;
}

/* Bridge Card */
.bridge-card {
    background: rgba(21, 27, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    max-width: 56rem;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    margin: 0 auto 2rem auto;
}

.card-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00aee6 0%, #8b5cf6 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* Form Section */
.form-section {
    background: rgba(21, 27, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.connect-wallet-in-form-btn {
    background: linear-gradient(135deg, #8A3B12, #a0451a);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.connect-wallet-in-form-btn:hover {
    background: linear-gradient(135deg, #a0451a, #b84e1f);
    transform: translateY(-1px);
}

/* Form Content Grid */
.form-content-area {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
}

/* Network Box */
.network-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 160px;
    position: relative;
}

.network-box .input-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

.network-box .custom-dropdown {
    position: relative;
    height: calc(100% - 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-box .dropdown-selected-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.network-box .selected-display-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.network-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.network-box .dropdown-selected-value span {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* Token and Amount Container */
.token-amount-balance-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 160px;
}

/* Token Box */
.token-box-inner {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    flex: 1;
    position: relative;
}

.token-box-inner .input-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.token-box-inner .custom-dropdown {
    position: relative;
}

.token-box-inner .dropdown-selected-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.token-box-inner .selected-display-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.asset-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.token-box-inner .dropdown-selected-value span {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.dropdown-selected-value::after {
    content: '▼';
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.5rem;
}

.custom-dropdown.active .dropdown-selected-value::after {
    transform: rotate(180deg);
    color: #00aee6;
}

/* Amount Box */
.amount-balance-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    flex: 1;
}

.amount-balance-box .input-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.form-amount-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: right;
    outline: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.form-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-amount-input:focus {
    color: #00aee6;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.max-btn {
    background: linear-gradient(135deg, #00aee6, #0090bb);
    color: white;
    border: none;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.max-btn:hover {
    background: linear-gradient(135deg, #0090bb, #00aee6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 174, 230, 0.3);
}

/* Dropdown Options */
.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    max-height: 280px;
    overflow-y: auto;
    z-index: 9999;
    margin-top: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.dropdown-options.show {
    display: block;
}

.dropdown-option {
    padding: 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-option:hover {
    background: rgba(0, 174, 230, 0.15);
    border-left-color: #00aee6;
    color: #00aee6;
}

.dropdown-option img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Swap Button */
.swap-btn-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.swap-btn {
    background: rgba(21, 27, 46, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 1rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swap-btn:hover {
    border-color: #00aee6;
    background: rgba(0, 174, 230, 0.1);
    transform: rotate(180deg) scale(1.05);
}

.swap-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Route Section */
.route-section {
    background: rgba(21, 27, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 1.5rem;
}

.route-header {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.route-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.route-path {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: white;
    flex: 1;
}

.route-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 174, 230, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 174, 230, 0.2);
}

.route-arrow {
    color: #00aee6;
    font-size: 1.2rem;
}

.route-info {
    text-align: right;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.route-value {
    color: #00ff88;
    font-weight: 700;
    font-size: 1.25rem;
    display: block;
}

/* Primary Button */
.primary-btn {
    width: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    background: linear-gradient(135deg, #00aee6 0%, #8b5cf6 50%, #fb923c 100%);
    border: none;
    cursor: pointer;
    margin-top: 2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 174, 230, 0.3);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Transactions */
.transactions-container {
    background: rgba(21, 27, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    max-width: 56rem;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.transactions-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00aee6 0%, #8b5cf6 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transactions-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.transactions-table th {
    background: rgba(0, 174, 230, 0.1);
    color: #00aee6;
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.transactions-table th:first-child {
    border-radius: 0.5rem 0 0 0.5rem;
}

.transactions-table th:last-child {
    border-radius: 0 0.5rem 0.5rem 0;
}

.transactions-table td {
    background: rgba(21, 27, 46, 0.6);
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.transactions-table tbody tr:hover td {
    background: rgba(0, 174, 230, 0.1);
}

.status-badge {
    background: linear-gradient(135deg, #00ff88 0%, #00aee6 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .form-content-area {
        grid-template-columns: 1fr;
    }

    .network-box {
        height: auto;
        min-height: 120px;
    }

    .token-amount-balance-container {
        height: auto;
    }
}