/* FundMe Styles */
/* Note: Global body styles removed - handled by ce-integration.css */

.fundme-app-container .container {
    max-width: 1200px;
    margin: 0 auto;
}

.fundme-app-container header {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.fundme-app-container .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.fundme-app-container h1 {
    color: #667eea;
    font-size: 28px;
    font-weight: 700;
}

.fundme-app-container .wallet-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.fundme-app-container .wallet-address {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

.fundme-app-container .balance {
    font-weight: 600;
    color: #333;
}

.fundme-app-container .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fundme-app-container .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.fundme-app-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.fundme-app-container .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.fundme-app-container .btn-secondary:hover {
    background: #f0f4ff;
}

.fundme-app-container .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fundme-app-container .content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fundme-app-container .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.fundme-app-container .tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.fundme-app-container .tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.fundme-app-container .tab-content {
    display: none;
}

.fundme-app-container .tab-content.active {
    display: block;
}

/* Create Campaign Form */
.fundme-app-container .form-group {
    margin-bottom: 20px;
}

.fundme-app-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.fundme-app-container input[type="text"],
.fundme-app-container input[type="number"],
.fundme-app-container textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.fundme-app-container input:focus,
.fundme-app-container textarea:focus {
    outline: none;
    border-color: #667eea;
}

.fundme-app-container textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.fundme-app-container .form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Campaign Cards */
.fundme-app-container .campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.fundme-app-container .campaign-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.fundme-app-container .campaign-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.fundme-app-container .campaign-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.fundme-app-container .status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.fundme-app-container .status-successful {
    background: #e3f2fd;
    color: #1565c0;
}

.fundme-app-container .status-failed {
    background: #ffebee;
    color: #c62828;
}

.fundme-app-container .status-expired {
    background: #f5f5f5;
    color: #757575;
}

.fundme-app-container .campaign-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    padding-right: 100px;
}

.fundme-app-container .campaign-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.fundme-app-container .campaign-creator {
    font-size: 12px;
    color: #999;
    font-family: monospace;
    margin-bottom: 8px;
}

.fundme-app-container .vendor-address {
    color: #999;
}

.fundme-app-container .vendor-info-link {
    margin-bottom: 16px;
}

.fundme-app-container .btn-vendor-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.fundme-app-container .btn-vendor-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.fundme-app-container .btn-vendor-info .info-icon {
    font-size: 16px;
}

.fundme-app-container .progress-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.fundme-app-container .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.fundme-app-container .campaign-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.fundme-app-container .stat {
    text-align: center;
}

.fundme-app-container .stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.fundme-app-container .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.fundme-app-container .campaign-actions {
    display: flex;
    gap: 12px;
}

.fundme-app-container .donate-input {
    flex: 1;
}

.fundme-app-container .btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.fundme-app-container .donation-progress {
    width: 100%;
    padding: 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Loading and Messages */
.fundme-app-container .loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.fundme-app-container .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fundme-app-container .message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.message-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.message-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wallet-info {
        align-items: flex-start;
        width: 100%;
    }
}

/* Modal styles */
.fundme-app-container .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.fundme-app-container .modal.active {
    display: flex;
}

.fundme-app-container .modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.fundme-app-container .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fundme-app-container .modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.fundme-app-container .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fundme-app-container .modal-close:hover {
    color: #333;
}
