/* TAC Trading Connection Styles */

.tac-trading-connections-wrap {
    max-width: 1200px;
}

.tac-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.tac-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Status Cards */
.tac-status-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.tac-status-card .status-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.tac-status-card .status-icon.warning {
    color: #dba617;
}

.tac-status-card .wallet-type {
    font-weight: 600;
    color: #2271b1;
}

.tac-status-card .wallet-address {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* Exchange Grid */
.tac-exchanges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tac-exchange-card {
    background: #f8f9fa;
    border: 2px solid #e1e4e8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tac-exchange-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tac-exchange-card.connected {
    border-color: #00a32a;
    background: #f0fff0;
}

.tac-exchange-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.connected {
    background: #d4edda;
    color: #155724;
}

.status-badge.disconnected {
    background: #fff3cd;
    color: #856404;
}

.status-badge.testnet {
    background: #cce5ff;
    color: #004085;
}

.status-badge.live {
    background: #f8d7da;
    color: #721c24;
}

.testnet-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e7f3ff;
    color: #0073aa;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.live-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #fff0f0;
    color: #d63638;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Card Actions */
.card-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-actions .button {
    font-size: 12px;
    padding: 4px 12px;
}

/* Modal Styles */
.tac-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.tac-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
}

.tac-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.tac-modal-close:hover {
    color: #000;
}

/* Form Styles */
.tac-form-row {
    margin-bottom: 15px;
}

.tac-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.tac-form-row input[type="text"],
.tac-form-row input[type="password"],
.tac-form-row select {
    width: 100%;
    max-width: 100%;
}

.tac-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Connection Panel (Shortcode) */
.tac-connection-panel {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 20px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.tac-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.tac-panel-header h3 {
    margin: 0;
    color: #00d4ff;
}

.tac-connection-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    background: #333;
}

.tac-connection-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #0d0d1a;
    border-radius: 8px;
    margin-bottom: 10px;
}

.tac-connection-item .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #7c4dff;
}

.tac-connection-item .item-label {
    flex: 1;
    font-weight: 500;
}

.tac-connection-item .item-status {
    color: #ffab00;
    font-size: 13px;
}

.tac-connection-item .item-status.connected {
    color: #00ff88;
}

/* Login Required */
.tac-login-required {
    background: #fff3cd;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #ffab00;
}

.tac-login-required a {
    font-weight: 600;
}