/**
 * WP Crypto Internal Transfer Styles
 * Simple and clean styles for internal crypto transfers
 *
 * Table of Contents:
 * 1. Base Styles
 * 2. Form Card
 * 3. Form Elements
 * 4. Info Display
 * 5. History Section
 * 6. Status Elements
 * 7. Responsive Design
 *
 * @package WPCrypto
 * @since 1.0.0
 */

/* =========================
   1. BASE STYLES
   ========================= */

.wpcryptoprofilepage-internal_transfer {
    background: transparent;
    padding: 0;
    border: none;
    text-align: left;
}

.wpcrypto_internal_transfer_container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================
   2. FORM CARD
   ========================= */

.wpcrypto_internal_transfer_form_card {
    background: #ffffff;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wpcrypto_internal_transfer_form_card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.wpcrypto_internal_transfer_form_card h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin: 0;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: 600;
}

/* =========================
   3. FORM ELEMENTS
   ========================= */

#wpcrypto_internal_transfer_form {
    padding: 25px;
}

.wpcrypto_internal_transfer_form_group {
    margin-bottom: 25px;
}

.wpcrypto_internal_transfer_form_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 14px;
}

.wpcrypto_internal_transfer_form_group select,
.wpcrypto_internal_transfer_form_group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcrypto_internal_transfer_form_group select:focus,
.wpcrypto_internal_transfer_form_group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.wpcrypto_internal_transfer_form_group select:disabled,
.wpcrypto_internal_transfer_form_group input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

/* =========================
   4. INFO DISPLAY
   ========================= */

#wpcrypto_internal_transfer_amount_info {
    font-size: 14px;
    color: #6c757d;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    border-left: 4px solid #667eea;
    margin-top: 8px;
}

#wpcrypto_internal_transfer_ref_status {
    margin-top: 8px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.wpcrypto_internal_transfer_success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 4px solid #28a745;
}

.wpcrypto_internal_transfer_error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.wpcrypto_internal_transfer_info_card {
    background: #f8f9fa;
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.wpcrypto_internal_transfer_info_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e9;
    font-size: 15px;
}

.wpcrypto_internal_transfer_info_row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 16px;
    margin-top: 8px;
    padding-top: 15px;
    border-top: 2px solid #e1e5e9;
}

.wpcrypto_internal_transfer_info_row span:first-child {
    color: #6c757d;
    font-weight: 500;
}

.wpcrypto_internal_transfer_info_row span:last-child {
    color: #333333;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

#wpcrypto_internal_transfer_submit {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#wpcrypto_internal_transfer_submit:hover:not(:disabled) {
    background: linear-gradient(45deg, #5a6fd8, #6a41a0);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#wpcrypto_internal_transfer_submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* =========================
   5. HISTORY SECTION
   ========================= */

.wpcrypto_internal_transfer_history_card {
    background: #ffffff;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wpcrypto_internal_transfer_history_card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.wpcrypto_internal_transfer_history_card h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin: 0;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: 600;
}

.wpcrypto_internal_transfer_history_item {
    border-bottom: 1px solid #e1e5e9;
    padding: 25px;
    transition: background-color 0.2s ease;
}

.wpcrypto_internal_transfer_history_item:hover {
    background-color: #f8f9fa;
}

.wpcrypto_internal_transfer_history_item:last-child {
    border-bottom: none;
}

.wpcrypto_transfer_item_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.wpcrypto_transfer_date {
    display: flex;
    flex-direction: column;
}

.date-main {
    font-weight: 600;
    color: #333333;
    font-size: 16px;
}

.date-time {
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
}

.wpcrypto_transfer_item_body {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wpcrypto_transfer_info_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.wpcrypto_transfer_info_row:last-child {
    border-bottom: none;
}

.wpcrypto_transfer_label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.wpcrypto_transfer_value {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
}

/* =========================
   6. STATUS ELEMENTS
   ========================= */

.wpcrypto_status_badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.wpcrypto_status_badge.status-completed {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.wpcrypto_status_badge.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.wpcrypto_status_badge.status-failed {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.wpcrypto_transfer_value.recipient-name {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.wpcrypto_transfer_value.amount-sent {
    color: #dc3545;
    font-family: 'Courier New', monospace;
}

.wpcrypto_transfer_value.amount-received {
    color: #28a745;
    font-family: 'Courier New', monospace;
}

.wpcrypto_transfer_value.fee-amount {
    color: #ffc107;
    font-family: 'Courier New', monospace;
}

.wpcrypto_transfer_value.confirmation-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    word-break: break-all;
}

.wpcrypto_no_coins_message,
.wpcrypto_no_transfers_message {
    text-align: center;
    padding: 60px 25px;
    color: #6c757d;
    background: #ffffff;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    margin: 25px;
}

.no-coins-icon,
.no-transfers-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.wpcrypto_no_coins_message h4,
.wpcrypto_no_transfers_message h4 {
    margin: 15px 0 10px 0;
    color: #333333;
    font-size: 22px;
    font-weight: 600;
}

.wpcrypto_no_coins_message p,
.wpcrypto_no_transfers_message p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #6c757d;
}

.wpcrypto_internal_transfer_loading {
    text-align: center;
    padding: 50px;
    color: #6c757d;
    background: #ffffff;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    margin: 25px;
}

.wpcrypto_internal_transfer_loading::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: wpcrypto-spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes wpcrypto-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   7. RESPONSIVE DESIGN
   ========================= */

@media (max-width: 768px) {
    .wpcrypto_internal_transfer_container {
        padding: 10px;
    }
    
    .wpcrypto_internal_transfer_form_card h3,
    .wpcrypto_internal_transfer_history_card h3 {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    #wpcrypto_internal_transfer_form {
        padding: 20px;
    }
    
    .wpcrypto_internal_transfer_form_group {
        margin-bottom: 20px;
    }
    
    .wpcrypto_internal_transfer_form_group select,
    .wpcrypto_internal_transfer_form_group input {
        padding: 12px;
        font-size: 14px;
    }
    
    #wpcrypto_internal_transfer_submit {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .wpcrypto_transfer_item_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wpcrypto_transfer_info_row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wpcrypto_transfer_value.confirmation-code {
        font-size: 12px;
    }
    
    .wpcrypto_internal_transfer_history_item {
        padding: 20px;
    }
    
    .wpcrypto_transfer_item_body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .wpcrypto_internal_transfer_container {
        padding: 5px;
    }
    
    .wpcrypto_internal_transfer_form_card h3,
    .wpcrypto_internal_transfer_history_card h3 {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    #wpcrypto_internal_transfer_form {
        padding: 15px;
    }
    
    .wpcrypto_internal_transfer_history_item {
        padding: 15px;
    }
    
    .wpcrypto_transfer_item_body {
        padding: 12px;
    }
    
    .wpcrypto_no_coins_message,
    .wpcrypto_no_transfers_message {
        padding: 40px 20px;
        margin: 15px;
    }
    
    .no-coins-icon,
    .no-transfers-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .wpcrypto_no_coins_message h4,
    .wpcrypto_no_transfers_message h4 {
        font-size: 18px;
    }
    
    .wpcrypto_internal_transfer_loading {
        padding: 40px 20px;
        margin: 15px;
    }
}

/* Dark mode support */
[data-theme="dark"] .wpcrypto_internal_transfer_form_card,
[data-theme="dark"] .wpcrypto_internal_transfer_history_card,
[data-theme="dark"] .wpcrypto_no_coins_message,
[data-theme="dark"] .wpcrypto_no_transfers_message,
[data-theme="dark"] .wpcrypto_internal_transfer_loading {
    background: #2d2d2d;
    color: #ffffff;
}

[data-theme="dark"] .wpcrypto_internal_transfer_form_group select,
[data-theme="dark"] .wpcrypto_internal_transfer_form_group input {
    background: #404040;
    color: #ffffff;
    border-color: #555555;
}

[data-theme="dark"] .wpcrypto_internal_transfer_success {
    background: #1e4620;
    color: #75b798;
    border-color: #2d5a31;
}

[data-theme="dark"] .wpcrypto_internal_transfer_error {
    background: #4a1e1e;
    color: #f5b7b1;
    border-color: #6d2c2c;
}