/* Korence Fedapay MyCred - Styles */

.kofeda-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.kofeda-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.kofeda-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    color: white;
    text-align: center;
}

.kofeda-header h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.kofeda-balance {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.kofeda-balance .label {
    font-size: 13px;
    opacity: 0.9;
    margin-right: 8px;
}

.kofeda-balance .amount {
    font-size: 20px;
    font-weight: 700;
}

.kofeda-form {
    padding: 30px;
}

.kofeda-form-group {
    margin-bottom: 24px;
}

.kofeda-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.kofeda-input-wrapper {
    position: relative;
}

.kofeda-form-group input[type="number"],
.kofeda-form-group input[type="text"],
.kofeda-form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.kofeda-form-group input[type="number"] {
    padding-right: 65px;
}

.kofeda-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.kofeda-currency {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #667eea;
    font-size: 15px;
    pointer-events: none;
}

.kofeda-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.kofeda-message {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.kofeda-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.kofeda-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.kofeda-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.kofeda-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.kofeda-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.kofeda-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.kofeda-submit-btn .btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.kofeda-footer {
    padding: 20px;
    background: #f9fafb;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.kofeda-footer p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.kofeda-footer strong {
    color: #667eea;
}

.kofeda-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

/* Responsive */
@media (max-width: 600px) {
    .kofeda-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .kofeda-header {
        padding: 25px 20px;
    }
    
    .kofeda-header h3 {
        font-size: 20px;
    }
    
    .kofeda-form {
        padding: 20px;
    }
}

/* Animation d'entrée */
.kofeda-card {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
