/* Deposits CSS - v1.0 */

/* Сети */
.network-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.network-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.network-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.network-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.network-card h5 {
    color: var(--text-color);
    margin: 0.5rem 0;
    font-size: 1.3rem;
}

.network-card p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.network-fee {
    color: var(--success-color) !important;
    font-weight: 600;
}

.network-time {
    color: var(--info-color) !important;
}

/* Информация о депозите */
.deposit-info {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.deposit-info p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

/* Кнопка назад */
.btn-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Секция адреса */
.deposit-address-section {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.qr-code-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem auto;
    width: fit-content;
}

.address-display {
    margin: 1.5rem 0;
}

.address-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.address-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    word-break: break-all;
}

.address-value span {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.btn-copy {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Предупреждения */
.deposit-warnings {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.deposit-warnings p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

/* Секция ввода TxID */
.tx-input-section {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
}

.tx-input-section h4 {
    margin-top: 0;
    color: var(--text-color);
}

.tx-input-section input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

.tx-input-section small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Статус депозита */
.deposit-status {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
}

.status-success {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.status-error {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #f44336;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.deposit-details {
    text-align: left;
    background: var(--card-background);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.deposit-details p {
    margin: 0.5rem 0;
}

.success-text {
    color: #4caf50;
    font-weight: 600;
    margin-top: 1rem;
}

.pending-text {
    color: #ff9800;
    font-weight: 600;
    margin-top: 1rem;
}

/* История депозитов */
.deposit-history-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.deposits-table {
    overflow-x: auto;
}

.deposits-table table {
    width: 100%;
    border-collapse: collapse;
}

.deposits-table th,
.deposits-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.deposits-table th {
    background: var(--card-background);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.deposits-table td {
    color: var(--text-color);
}

.network-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.network-badge.bep20 {
    background: rgba(243, 186, 47, 0.2);
    color: #f3ba2f;
}

.network-badge.trc20 {
    background: rgba(235, 65, 65, 0.2);
    color: #eb4141;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status-badge.confirmed,
.status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status-badge.failed {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.tx-link {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Courier New', monospace;
}

.tx-link:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .network-selection {
        grid-template-columns: 1fr;
    }

    .address-value {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-copy {
        width: 100%;
    }

    .deposits-table {
        font-size: 0.85rem;
    }

    .deposits-table th,
    .deposits-table td {
        padding: 0.5rem;
    }
}
