/* Instachat1 Tip Jar Styles */

/* Main Container */
.ic1-tip-jar-container {
    margin: 20px 0;
    text-align: center;
}

.ic1-tip-jar-content-wrapper {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* Tip Button */
.ic1-tip-jar-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ic1-tip-jar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ic1-tip-jar-btn img {
    width: 24px;
    height: 24px;
}

/* QR Code Section */
.ic1-qr-code-section {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ic1-qr-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ic1-qr-code {
    width: 200px;
    height: 200px;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ic1-download-qr-btn {
    display: inline-block;
    margin-top: 10px;
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ic1-download-qr-btn:hover {
    background: #218838;
}

/* Status Indicators */
.ic1-status-active {
    color: #28a745;
    font-weight: 600;
}

.ic1-status-pending {
    color: #ffc107;
    font-weight: 600;
}

.ic1-status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.ic1-status-verification_needed {
    color: #fd7e14;
    font-weight: 600;
}

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

.ic1-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ic1-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.ic1-modal-header h3 {
    margin: 0;
    color: #333;
}

.ic1-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ic1-modal-close:hover {
    color: #333;
}

.ic1-modal-body {
    padding: 20px;
}

.ic1-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Creator Info */
.ic1-creator-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ic1-creator-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.ic1-creator-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.ic1-creator-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Tip Amount Section */
.ic1-tip-amount-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.ic1-preset-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ic1-preset-amount {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.ic1-preset-amount:hover,
.ic1-preset-amount.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

#ic1-custom-amount {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#ic1-custom-amount:focus {
    outline: none;
    border-color: #667eea;
}

/* Message Section */
.ic1-message-section {
    margin-bottom: 20px;
}

.ic1-message-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

#ic1-tip-message {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

#ic1-tip-message:focus {
    outline: none;
    border-color: #667eea;
}

/* Fee Info */
.ic1-fee-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.ic1-fee-info p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* Tip History */
.ic1-tip-history {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
}

.ic1-tip-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ic1-tip-item:last-child {
    border-bottom: none;
}

.ic1-tip-item strong {
    color: #333;
}

.ic1-tip-item em {
    color: #666;
    font-size: 14px;
}

/* Shortcode Variations */
.ic1-size-small .ic1-tip-jar-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.ic1-size-small .ic1-tip-jar-btn img {
    width: 18px;
    height: 18px;
}

.ic1-size-large .ic1-tip-jar-btn {
    padding: 16px 32px;
    font-size: 18px;
}

.ic1-size-large .ic1-tip-jar-btn img {
    width: 30px;
    height: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ic1-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .ic1-preset-amounts {
        justify-content: center;
    }
    
    .ic1-creator-info {
        flex-direction: column;
        text-align: center;
    }
    
    .ic1-modal-footer {
        flex-direction: column;
    }
    
    .ic1-modal-footer button {
        width: 100%;
    }
}

/* Loading States */
.ic1-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ic1-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: ic1-spin 1s linear infinite;
}

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

/* Success/Error Messages */
.ic1-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ic1-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.ic1-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Integration with PeepSo */
.ps-profile--header .ic1-tip-jar-container {
    margin-top: 15px;
}

.ps-profile--header .ic1-tip-jar-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* WordPress Admin Styles */
.wp-admin .ic1-tip-jar-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}
