/**
 * Tabs Style for NFT Revenue Splitter
 * 
 * Styles for the tabbed interface with three payment methods:
 * 1. Crypto (USDC on Polygon)
 * 2. Credit Card
 * 3. ACH/Bank Transfer
 */

/* Tabs Container */
.nft-payment-tabs {
    margin: 20px 0;
    border-radius: 5px;
    overflow: hidden;
}

/* Tab Headers - Horizontal Layout */
.tab-headers {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    background-color: #f5f5f5;
}

.tab-header {
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.tab-header:hover {
    background-color: #e9e9e9;
}

.tab-header.active {
    background-color: #fff;
    border-color: #ddd;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: bold;
    color: #4CAF50;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    background-color: #fff;
}

.tab-content.active {
    display: block;
}

/* Form Elements */
.nft-payment-form-fields {
    margin-top: 15px;
}

.nft-form-row {
    margin-bottom: 15px;
}

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

.nft-form-row input,
.nft-form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.nft-form-row input:focus,
.nft-form-row select:focus {
    border-color: #4a90e2;
    outline: none;
}

.nft-form-row-half {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.nft-form-row-half:first-child {
    margin-right: 3%;
}

.nft-stripe-element {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    min-height: 40px;
}

/* Payment Action */
.nft-payment-action {
    margin-top: 20px;
    text-align: center;
}

.nft-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nft-button:hover {
    background-color: #3a80d2;
}

.nft-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.nft-button-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.nft-button-secondary:hover {
    background-color: #e9e9e9;
}

/* Wallet Status */
.nft-wallet-status {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nft-status-message {
    flex: 1;
}

/* Messages */
.nft-prompt,
.nft-success,
.nft-error {
    margin: 15px 0;
    padding: 15px;
    border-radius: 4px;
}

.nft-prompt {
    background-color: #f9f9f9;
    border-left: 4px solid #4a90e2;
}

.nft-success {
    background-color: #e7f7e7;
    border-left: 4px solid #4caf50;
}

.nft-error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

/* Loading Spinner */
.nft-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nft-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tab-headers {
        flex-direction: column;
    }
    
    .tab-header {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }
    
    .tab-header.active {
        border-bottom: 1px solid #ddd;
    }
    
    .nft-form-row-half {
        width: 100%;
        margin-right: 0;
    }
    
    .nft-wallet-status {
        flex-direction: column;
        text-align: center;
    }
    
    .nft-wallet-status .nft-button {
        margin-top: 10px;
    }
}
